Debugging with ipython and ipdb
import ipdb; ipdb.set_trace() # BREAKPOINT
Make sure you have setuptools installed
Install ipython and ipdb
Place a breakpoint in your code
print 'Hello World!'
my_var = 10 / 3
import ipdb; ipdb.set_trace() # BREAKPOINT
print my_var
Run your code
python my_project.py
Use ipdb
Sample program with a bug
Hint: Use pprint
import pprint
pprint.pprint(some_variable)