Package zope :: Package testing :: Module doctest :: Class _OutputRedirectingPdb
[show private | hide private]
[frames | no frames]

Class _OutputRedirectingPdb

Bdb --+    
      |    
Cmd --+    
      |    
    Pdb --+
          |
         _OutputRedirectingPdb


A specialized version of the python debugger that redirects stdout to a given stream when interacting with the user. Stdout is not redirected when traced code is executed.


Method Summary
  __init__(self, out)
  set_continue(self)
  set_trace(self)
  trace_dispatch(self, *args)
    Inherited from Pdb
  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(self, frame)
  break_here(self, frame)
  canonic(self, filename)
  clear_all_breaks(self)
  clear_all_file_breaks(self, filename)
  clear_bpbynumber(self, arg)
  clear_break(self, filename, lineno)
  dispatch_call(self, frame, arg)
  dispatch_exception(self, frame, arg)
  dispatch_line(self, frame)
  dispatch_return(self, frame, arg)
  format_stack_entry(self, frame_lineno, lprefix)
  get_all_breaks(self)
  get_break(self, filename, lineno)
  get_breaks(self, filename, lineno)
  get_file_breaks(self, filename)
  get_stack(self, f, t)
  run(self, cmd, globals, locals)
  runcall(self, func, *args, **kwds)
  runctx(self, cmd, globals, locals)
  runeval(self, expr, globals, locals)
  set_break(self, filename, lineno, temporary, cond, funcname)
  set_next(self, frame)
Stop on the next line in or below the given frame.
  set_quit(self)
  set_return(self, frame)
Stop when returning from the given frame.
  set_step(self)
Stop after one line of code.
  stop_here(self, frame)
    Inherited from Cmd
  cmdloop(self, intro)
Repeatedly issue a prompt, accept input, parse an initial prefix off the received input, and dispatch to action methods, passing them the remainder of the line as argument.
  columnize(self, list, displaywidth)
Display a list of strings as a compact set of columns.
  complete(self, text, state)
Return the next possible completion for 'text'.
  complete_help(self, *args)
  completedefault(self, *ignored)
Method called to complete an input line when no command-specific complete_*() method is available.
  completenames(self, text, *ignored)
  do_help(self, arg)
  emptyline(self)
Called when an empty line is entered in response to the prompt.
  get_names(self)
  onecmd(self, line)
Interpret the argument as though it had been typed in response to the prompt.
  parseline(self, line)
Parse the line into a command name and a string containing the arguments.
  postcmd(self, stop, line)
Hook method executed just after a command dispatch is finished.
  postloop(self)
Hook method executed once when the cmdloop() method is about to return.
  preloop(self)
Hook method executed once when the cmdloop() method is called.
  print_topics(self, header, cmds, cmdlen, maxcol)

Class Variable Summary
    Inherited from Cmd
str doc_header = 'Documented commands (type help <topic>):'
str doc_leader = ''
str identchars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOP...
NoneType intro = None                                                                  
str lastcmd = ''
str misc_header = 'Miscellaneous help topics:'
str nohelp = '*** No help on %s'
str prompt = '(Cmd) '
str ruler = '='
str undoc_header = 'Undocumented commands:'
int use_rawinput = 1                                                                     

Generated by Epydoc 2.1 on Fri Jun 24 12:01:23 2005 http://epydoc.sf.net