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
setuptools_scm # must come after ``setuptools_scm`` pdbpp
If you get a
setuptools_scm error when installing
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
.pdbrc.py 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()
pip install prettyprinter
import prettyprinter prettyprinter.prettyprinter.install_extras(["attrs"]) prettyprinter.pprint(data)