After watching, Clayton Parker - So you think you can PDB? - PyCon 2015, I have started using pdbpp.

I think you might like it…


Add the following to requirements/local.txt:

# must come after ``setuptools_scm``


If you get a setuptools_scm error when installing pdbpp, then manually install setuptools_scm i.e. pip install setuptools_scm


You might want to remove ipdb (if you have been using it). ipython still appears to work in the Django shell.

Download a nice looking file and copy to your home folder. I downloaded this one:

To debug, add the following to the line of your code where you want the breakpoint:

import pdb; pdb.set_trace()