Entries tagged with debugging
Using ipython's debugger as pdb replacement.
22. July 2010 -
view comments
Do you know how to debug your python code? I usually do the following in my code to set something like a hardcoded breakpoint:
import pdb; pdb.set_trace();
This will bring up a pdb prompt when the code execution reaches this line.
But pdb is a bit limited since it doesn't support code completion,
syntax highlighting and so on.
So here is how you make your debug prompt more fancy by using ipython's debugger.
Subscribe to this tag's feed.
about
Gregor Müllegger's Weblog on django, python, vim and anything else.
Feel free to contact me if you have question about my life, my work or my projects.
