PDB Cheatsheet

Published: Jan. 2, 2017, 2:29 p.m. Back

Author: rachell

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"


No comments here yet


New Comment