Debugging it all

Published: Wed 11 August 2021
By Alex

In misc.

Setting Up for Python >= 3.7

python -m pdb or breakpoint() when older python import pdb; pdb.set_trace()

Basic commands

l (ll) list lines around breakpoint p (pp) pretty print n (ext) statement c (ontinue) program s (tep) into a function i (nteract) enter REPL !command (e.g. !help)

ressources to check

ipdb https://pypi.org/project/ipdb/ debugger commands https://docs.python.org/3/library/pdb.html#debugger-commands

links

social