The Python Debugger

Posted by Christian on Aug 14 2007, 23:20 CEST
Tagged with Python, Tips'n'tricks

It cannot be said enough. The Python Debugger pdb is just a great tool. Say you have a line in a function from which you wish to inspect the environment. Just do a jump into the debugger and analyze:

import pdb; pdb.set_trace()

That's all you need. To get more familiar with the debugger, I suggest visiting the pdb docs at python.org.

Comments for "The Python Debugger"

Currently disabled.