bdb
index
/usr/lib/python1.6/bdb.py

Debugger basics

 
Modules
            
os
sys
types

 
Classes
            
Bdb
Tdb
Breakpoint

 
class Bdb
      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.
 
  
__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)
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=None, locals=None)
runcall(self, func, *args)
runctx(self, cmd, globals, locals)
runeval(self, expr, globals=None, locals=None)
set_break(self, filename, lineno, temporary=0, cond=None)
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)
Start debugging from here.
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.

 
class Breakpoint
      Breakpoint class
 
Implements temporary breakpoints, ignore counts, disabling and
(re)-enabling, and conditionals.
 
Breakpoints are indexed by number through bpbynumber and by
the file,line tuple using bplist.  The former points to a
single instance of class Breakpoint.  The latter points to a
list of such instances since there may be more than one
breakpoint per line.
 
  
__init__(self, file, line, temporary=0, cond=None)
bpprint(self)
deleteMe(self)
disable(self)
enable(self)

 
class Tdb(Bdb)
       
  
__init__(self) from Bdb
break_anywhere(self, frame) from Bdb
break_here(self, frame) from Bdb
canonic(self, filename) from Bdb
clear_all_breaks(self) from Bdb
clear_all_file_breaks(self, filename) from Bdb
clear_bpbynumber(self, arg) from Bdb
clear_break(self, filename, lineno) from Bdb
dispatch_call(self, frame, arg) from Bdb
dispatch_exception(self, frame, arg) from Bdb
dispatch_line(self, frame) from Bdb
dispatch_return(self, frame, arg) from Bdb
format_stack_entry(self, frame_lineno, lprefix=': ') from Bdb
get_all_breaks(self) from Bdb
get_break(self, filename, lineno) from Bdb
get_breaks(self, filename, lineno) from Bdb
get_file_breaks(self, filename) from Bdb
get_stack(self, f, t) from Bdb
reset(self) from Bdb
run(self, cmd, globals=None, locals=None) from Bdb
runcall(self, func, *args) from Bdb
runctx(self, cmd, globals, locals) from Bdb
runeval(self, expr, globals=None, locals=None) from Bdb
set_break(self, filename, lineno, temporary=0, cond=None) from Bdb
set_continue(self) from Bdb
set_next(self, frame) from Bdb
set_quit(self) from Bdb
set_return(self, frame) from Bdb
set_step(self) from Bdb
set_trace(self) from Bdb
stop_here(self, frame) from Bdb
trace_dispatch(self, frame, event, arg) from Bdb
user_call(self, frame, args)
user_exception(self, frame, exc_stuff)
user_line(self, frame)
user_return(self, frame, retval)

 
Functions
            
bar(a)
effective(file, line, frame)
Determine which breakpoint for this /get.cgi/line is to be acted upon.
 
Called only if we know there is a bpt at this
location.  Returns breakpoint that was triggered and a flag
that indicates if it is ok to delete a temporary bp.
foo(n)
set_trace()
test()

 
Data
             BdbQuit = 'bdb.BdbQuit'
__file__ = '/usr/lib/python1.6/bdb.pyc'
__name__ = 'bdb'