Module bdb :: Class Bdb
[show private | hide private]
[frames | no frames]

Class Bdb

Known Subclasses:
Pdb

Generic Python debugger base class.

This class takes care of details of the trace facility; a derived class should implement user interaction. The standard debugger class (pdb.Pdb) is an example.
Method Summary
  __init__(self)
  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)
  do_clear(self, 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)
  reset(self)
  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_continue(self)
  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.
  set_trace(self, frame)
Start debugging from `frame`.
  stop_here(self, frame)
  trace_dispatch(self, frame, event, arg)
  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 method is called if an exception occurs, but only if we are to stop at or just below this level.
  user_line(self, frame)
This method is called when we stop or break at this line.
  user_return(self, frame, return_value)
This method is called when a return trap is set here.

Method Details

set_next(self, frame)

Stop on the next line in or below the given frame.

set_return(self, frame)

Stop when returning from the given frame.

set_step(self)

Stop after one line of code.

set_trace(self, frame=None)

Start debugging from `frame`.

If frame is not specified, debugging starts from caller's frame.

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 method is called if an exception occurs, but only if we are to stop at or just below this level.

user_line(self, frame)

This method is called when we stop or break at this line.

user_return(self, frame, return_value)

This method is called when a return trap is set here.

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