PDB reference - Notes from PyCon2014 - Indepth PDB - https://youtu.be/lnlZGhnULn4 #Python
Basic commands
---------------
# step - one line at a time
# next - execute next line including any function calls contained
# cont - continue execution
# print - print value of a variable
# break <file:lineno | function> [condition] - set breakpoint on a line or function, optionally only for certain conditions
# break - list all break points and number of times they have been triggered
# args - prints args of a call
# list - prints surrounding lines
# where - shows stacktrace
# up - go up the stack
# ll - long list (in 3.2) - only shows current function
# pp - pretty print
# !<input> - don't intrepret as a pdb command
# help <command> - prints help about a command
Customization
---------------
Can be placed in ~/.pdbrc
# alias <alias> <command> - define custom aliases
# ? - Can setup commands to be executed automatically on certain breakpoints
Setup stepwatch and nextwatch aliases in pdb
http://stackoverflow.com/questions/7668979/how-do-you-watch-a-variable-in-pdb