serhii.net

In the middle of the desert you can say anything you want

21 Dec 2021

pdppp instead of pdb and ipdb for python debugging

pdbpp is a drop-in replacement for pdb, and I like it more than ipdb for some reason.

Installing it makes it the default one imported when importing pdb (incl. by pytest, python’s breakpoint() etc!)

Really nice tutorial: pdb++, a drop-in replacement for pdb (the Python debugger) | PythonRepo

Vanilla-pdb cheatcheet: Python Debugger Cheat Sheet - Kapeli

Features not present in pdb that I love:

  • ll outputs the text of the current function
  • sticky updates the function listing with each new line, giving a nice interactive visual feeling to the debugging process

pytest -s works to make it play nice with the stdouts generated by pdbpp.

Nel mezzo del deserto posso dire tutto quello che voglio.