import pdb
pdb.set_trace()l - list current line of code
n - to go step over
s - to step into
w - to print call stack
b <module>/<filename>:<line number> / <function> - to set a breakpoint
c - to continue
r - to stepout
h <command> - show help