I hope you know about ipython. It’s a very cool Python interactive shell, with colored output and tab completion ( among other features ). I use it all the time.
For my debugging needs, I’m using pdb. I think most Python coders do this too.
Today, I was thinking how cool it would be if I could drop into ipython instead of pdb, so I asked on stackoverflow.
Here’s a link to the question : SO link.
All you have to do is install the ipdb gem. You can do this using easy_install, like this :
and then you use it in your code, like this :
import ipdb ... some code here ipdb.set_trace() ... rest of the code
A small tip: if your ipdb shell isn’t coloured, make sure you install the pyreadline library.