Debugging python...
Mon 01 February 2010
To debug a specific python script, start by inserting the following in to your .py file:
import pdb; pdb.set_trace()
These commands allow you to step through the code from the point of where pdb.set_trace() is placed in your script.
p \<object> - print the content of an …
Continue reading »