Oh, I just remembered trace too -- type 's' to step through each line of a command execution using the python debugger pdb.