Module pdb :: Class Pdb
[show private | hide private]
[frames | no frames]

Class Pdb

Bdb --+
      |
Cmd --+
      |
     Pdb

Known Subclasses:
_OutputRedirectingPdb

Method Summary
  __init__(self)
  checkline(self, filename, lineno)
Check whether specified line seems to be executable.
  default(self, line)
Called on an input line when the command prefix is not recognized.
  defaultFile(self)
Produce a reasonable default.
  do_a(self, arg)
  do_alias(self, arg)
  do_args(self, arg)
  do_b(self, arg, temporary)
  do_break(self, arg, temporary)
  do_bt(self, arg)
  do_c(self, arg)
  do_cl(self, arg)
Three possibilities, tried in this order: clear -> clear all breaks, ask for confirmation clear file:lineno -> clear all breaks at file:lineno clear bpno bpno ...
  do_clear(self, arg)
Three possibilities, tried in this order: clear -> clear all breaks, ask for confirmation clear file:lineno -> clear all breaks at file:lineno clear bpno bpno ...
  do_condition(self, arg)
  do_cont(self, arg)
  do_continue(self, arg)
  do_d(self, arg)
  do_debug(self, arg)
  do_disable(self, arg)
  do_down(self, arg)
  do_enable(self, arg)
  do_EOF(self, arg)
  do_exit(self, arg)
  do_h(self, arg)
  do_ignore(self, arg)
arg is bp number followed by ignore count.
  do_j(self, arg)
  do_jump(self, arg)
  do_l(self, arg)
  do_list(self, arg)
  do_n(self, arg)
  do_next(self, arg)
  do_p(self, arg)
  do_pp(self, arg)
  do_q(self, arg)
  do_quit(self, arg)
  do_r(self, arg)
  do_return(self, arg)
  do_retval(self, arg)
  do_rv(self, arg)
  do_s(self, arg)
  do_step(self, arg)
  do_tbreak(self, arg)
  do_u(self, arg)
  do_unalias(self, arg)
  do_up(self, arg)
  do_w(self, arg)
  do_whatis(self, arg)
  do_where(self, arg)
  execRcLines(self)
  forget(self)
  help_a(self)
  help_alias(self)
  help_args(self)
  help_b(self)
  help_break(self)
  help_bt(self)
  help_c(self)
  help_cl(self)
  help_clear(self)
  help_condition(self)
  help_cont(self)
  help_continue(self)
  help_d(self)
  help_debug(self)
  help_disable(self)
  help_down(self)
  help_enable(self)
  help_EOF(self)
  help_exec(self)
  help_exit(self)
  help_h(self)
  help_help(self)
  help_ignore(self)
  help_j(self)
  help_jump(self)
  help_l(self)
  help_list(self)
  help_n(self)
  help_next(self)
  help_p(self)
  help_pdb(self)
  help_pp(self)
  help_q(self)
  help_quit(self)
  help_r(self)
  help_return(self)
  help_s(self)
  help_step(self)
  help_tbreak(self)
  help_u(self)
  help_unalias(self)
  help_up(self)
  help_w(self)
  help_whatis(self)
  help_where(self)
  interaction(self, frame, traceback)
  lineinfo(self, identifier)
  lookupmodule(self, filename)
Helper function for break/clear parsing -- may be overridden.
  precmd(self, line)
Handle alias expansion and ';;' separator.
  print_stack_entry(self, frame_lineno, prompt_prefix)
  print_stack_trace(self)
  reset(self)
  setup(self, f, t)
  user_call(self, frame, argument_list)
This method is called when there is the remote possibility that we ever need to stop in this function.
  user_exception(self, frame, (exc_type, exc_value, exc_traceback))
This function is called if an exception occurs, but only if we are to stop at or just below this level.
  user_line(self, frame)
This function is called when we stop or break at this line.
  user_return(self, frame, return_value)
This function is called when a return trap is set here.
  _getval(self, arg)
  _runscript(self, filename)
Inherited from Bdb: break_anywhere, break_here, canonic, clear_all_breaks, clear_all_file_breaks, clear_bpbynumber, clear_break, dispatch_call, dispatch_exception, dispatch_line, dispatch_return, format_stack_entry, get_all_breaks, get_break, get_breaks, get_file_breaks, get_stack, run, runcall, runctx, runeval, set_break, set_continue, set_next, set_quit, set_return, set_step, set_trace, stop_here, trace_dispatch
Inherited from Cmd: cmdloop, columnize, complete, complete_help, completedefault, completenames, do_help, emptyline, get_names, onecmd, parseline, postcmd, postloop, preloop, print_topics

Class Variable Summary
Inherited from Cmd: doc_header, doc_leader, identchars, intro, lastcmd, misc_header, nohelp, prompt, ruler, undoc_header, use_rawinput

Method Details

checkline(self, filename, lineno)

Check whether specified line seems to be executable.

Return `lineno` if it is, 0 if not (e.g. a docstring, comment, blank line or EOF). Warning: testing is not comprehensive.

default(self, line)

Called on an input line when the command prefix is not recognized.

If this method is not overridden, it prints an error message and returns.
Overrides:
cmd.Cmd.default (inherited documentation)

defaultFile(self)

Produce a reasonable default.

do_cl(self, arg)

Three possibilities, tried in this order: clear -> clear all breaks, ask for confirmation clear file:lineno -> clear all breaks at file:lineno clear bpno bpno ... -> clear breakpoints by number
Overrides:
bdb.Bdb.do_clear

do_clear(self, arg)

Three possibilities, tried in this order: clear -> clear all breaks, ask for confirmation clear file:lineno -> clear all breaks at file:lineno clear bpno bpno ... -> clear breakpoints by number
Overrides:
bdb.Bdb.do_clear

do_ignore(self, arg)

arg is bp number followed by ignore count.

lookupmodule(self, filename)

Helper function for break/clear parsing -- may be overridden.

lookupmodule() translates (possibly incomplete) file or module name into an absolute file name.

precmd(self, line)

Handle alias expansion and ';;' separator.
Overrides:
cmd.Cmd.precmd

user_call(self, frame, argument_list)

This method is called when there is the remote possibility that we ever need to stop in this function.
Overrides:
bdb.Bdb.user_call

user_exception(self, frame, (exc_type, exc_value, exc_traceback))

This function is called if an exception occurs, but only if we are to stop at or just below this level.
Overrides:
bdb.Bdb.user_exception

user_line(self, frame)

This function is called when we stop or break at this line.
Overrides:
bdb.Bdb.user_line

user_return(self, frame, return_value)

This function is called when a return trap is set here.
Overrides:
bdb.Bdb.user_return

Generated by Epydoc 2.1 on Tue Sep 5 09:37:22 2006 http://epydoc.sf.net