print 'h(elp)\n\tWithout argument, print the list of available commands.\n\tWith a command name as argument, print help about that command\n\t"help pdb" pipes the full documentation file to the $PAGER\n\t"help exec" gives help on the ! command'
def help_where(self):
self.help_w()
def help_w(self):
print 'w(here)\n\tPrint a stack trace, with the most recent frame at the bottom.\n\tAn arrow indicates the "current frame", which determines the\n\tcontext of most commands.'
def help_down(self):
self.help_d()
def help_d(self):
print 'd(own)\n\tMove the current frame one level down in the stack trace\n\t(to an older frame).'
def help_up(self):
self.help_u()
def help_u(self):
print 'u(p)\n\tMove the current frame one level up in the stack trace\n\t(to a newer frame).'
def help_break(self):
self.help_b()
def help_b(self):
print 'b(reak) [lineno | function] [, "condition"]\n\tWith a line number argument, set a break there in the current\n\tfile. With a function name, set a break at the entry of that\n\tfunction. Without argument, list all breaks. If a second\n\targument is present, it is a string specifying an expression\n\twhich must evaluate to true before the breakpoint is honored.\n\t'
def help_clear(self):
self.help_cl()
def help_cl(self):
print 'cl(ear) [lineno]\n\tWith a line number argument, clear that break in the current file.\n\tWithout argument, clear all breaks (but first ask confirmation).'
def help_step(self):
self.help_s()
def help_s(self):
print 's(tep)\n\tExecute the current line, stop at the first possible occasion\n\t(either in a function that is called or in the current function).'
def help_next(self):
self.help_n()
def help_n(self):
print 'n(ext)\n\tContinue execution until the next line in the current function\n\tis reached or it returns.'
def help_return(self):
self.help_r()
def help_r(self):
print 'r(eturn)\n\tContinue execution until the current function returns.'
def help_continue(self):
self.help_c()
def help_cont(self):
self.help_c()
def help_c(self):
print 'c(ont(inue))\n\tContinue execution, only stop when a breakpoint is encountered.'
def help_list(self):
self.help_l()
def help_l(self):
print 'l(ist) [first [,last]]\n\tList source code for the current file.\n\tWithout arguments, list 11 lines around the current line\n\tor continue the previous listing.\n\tWith one argument, list 11 lines starting at that line.\n\tWith two arguments, list the given range;\n\tif the second argument is less than the first, it is a count.'
def help_args(self):
self.help_a()
def help_a(self):
print 'a(rgs)\n\tPrint the arguments of the current function.'
def help_p(self):
print 'p expression\n\tPrint the value of the expression.'
def help_exec(self):
print "(!) statement\n\tExecute the (one-line) statement in the context of\n\tthe current stack frame.\n\tThe exclamation point can be omitted unless the first word\n\tof the statement resembles a debugger command.\n\tTo assign to a global variable you must always prefix the\n\tcommand with a 'global' command, e.g.:\n\t(Pdb) global list_options; list_options = ['-l']\n\t(Pdb)"
def help_quit(self):
self.help_q()
def help_q(self):
print 'q(uit)\tQuit from the debugger.\n\tThe program being executed is aborted.'