Debugging Python
breakpoint()¶
- https://www.youtube.com/watch?v=IzgSl-tkPPg
nnext / step oversstep intollist codej <line>jump to lineb <line>orbreak <line>set breakpointcorcontinueuntil breakpointhhelp
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 pudbimport pudb; pu.db- in the source code
- instead of
breakpoint()
Last update:
2023-04-24