The pdb module exports these functions:
pdb.run(stmt[,globals[,locals]])
Executes any Python statement. You must provide
the statement as a string.
The debugger prompts you before beginning
execution. You can provide your own global name
space by providing a argument; this
must be a dictionary mapping global names to
values. Similarly, you can provide a local
namespace by passing a dictionary globals.
locals
pdb.runeval(expr[,globals[,locals]])
This is similar to the pdb run
command, but it evaluates an expression, rather
than a statement. The is any Python
expression in string form.
expr
pdb.runcall(func[,arg]...)
Calls a function under pdb
control. The must be either a
function or a method. Arguments after the first
argument are passed to your
function.
func