print_stats(*restrictions) This method for the Stats class prints out a report as described in the profile
dump_stats(filename) Save the data loaded into the Stats object to a file named filename. The file is
pdb.runeval(expression, globals=None, locals=None) Evaluate the expression (given as a string or a code object) under
pdb.run(statement, globals=None, locals=None) Execute the statement (given as a string or a code object) under debugger
runctx(cmd, globals, locals) Profile the cmd via
dump(filename) Write the snapshot into a file. Use load() to reload the snapshot
run(cmd) Execute the command and gather statistics from the execution with the current tracing parameters. cmd must
get_bpbynumber(arg) Return a breakpoint specified by the given number. If arg is a string, it will be converted to
clear_all_breaks() Delete all existing breakpoints.
set_continue() Stop only at breakpoints or when finished. If there are no breakpoints, set the system trace function to None
Page 8 of 15