Monday, April 29, 2013

ipdb is soo much nicer than pdb

You use Ipython right? So why not use ipdb, its debugger.

However on Windows you  might have an issue if you call ipdb.set_trace() recursively, where the color coding breaks:
Starting ipdb inside ipython breaks color coding (windows)
The fix may be to comment or alter line 43 in __main__. Or just don't call ipdb.set_trace() in a loop, or from ipython :) .

Or even better use Doug Hellmann's tip and call ipdb from the command line using Python's call module option, `-m`.

Fork me on GitHub