PDB cheatsheet of:
https://pythonconquerstheuniverse.wordpress.com/2009/09/10/debugging-in-python/
import pdb
pdb.set_trace()
n |
next |
l |
list |
p |
Print (variables) |
c |
continue |
enter |
Same as last command |
q |
quit |
s |
step (subroutines) |
r |
Continue until return^ |
!var = |
! before var so pdb knows it’s a variable (Pdb)!b = "BBB" |