Skip to content

Debug in Python

This document introduces 2 simple methods to debug Python code.

add breakpoint()

# some python code
breakpoint()
# some python code

support option

where
up
down
step
nexe
continue
quit

run with pdb

python3 -m pdb -c continue <program path>