Debugging Python
breakpoint()
¶
- https://www.youtube.com/watch?v=IzgSl-tkPPg
n
next / step overs
step intol
list codej <line>
jump to lineb <line>
orbreak <line>
set breakpointc
orcontinue
until breakpointh
help
or start a file with PDB
pudb
¶
Visual pdb
useful for debugging in a container - when an IDE debugger might get out of sync
pip install pudb
import pudb; pu.db
- in the source code
- instead of
breakpoint()
Last update:
2023-04-24