PDB Cheatsheet
PDB Cheatsheet
Getting started
Movement
n(ext)
s(tep)
r(eturn)
c(ontinue)
u(p)
d(own)
Basics
h(elp)
quit debugger
Examine
p(rint) expr
pp expr
w(here)
l(ist)
Breakpoints
b(reak)
b(reak) lineno
b(reak) lineno, cond stop at breakpoint lineno if Python condition cond holds, e.g.
i==42
Miscellaneous
!stmt
alias map stmt
b(reak) file:lineno
b(reak) func
tbreak lineno
enable number
clear number