bdb
index
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/bdb.py
Module Docs

Debugger basics

 
Modules
       
fnmatch
os
sys
types

 
Classes
       
Bdb
Breakpoint
exceptions.Exception(exceptions.BaseException)
BdbQuit

 
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.
 
  Methods defined here:
__init__(self, skip=None)
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)
is_skipped_module(self, module_name)
reset(self)
run(self, cmd, globals=None, locals=None)
runcall(self, func, *args, **kwds)
runctx(self, cmd, globals, locals)
runeval(self, expr, globals=None, locals=None)
set_break(self, filename, lineno, temporary=0, cond=None, funcname=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, frame=None)
Start debugging from `frame`.
 
If frame is not specified, debugging starts from caller's frame.
set_until(self, frame)
Stop when the line with the line no greater than the current one is
reached or when returning from current 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_info)
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 BdbQuit(exceptions.Exception)
    Exception to give up completely
 
 
Method resolution order:
BdbQuit
exceptions.Exception
exceptions.BaseException
__builtin__.object

Data descriptors defined here:
__weakref__
list of weak references to the object (if defined)

Methods inherited from exceptions.Exception:
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature

Data and other attributes inherited from exceptions.Exception:
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from exceptions.BaseException:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__reduce__(...)
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__setstate__(...)
__str__(...)
x.__str__() <==> str(x)
__unicode__(...)

Data descriptors inherited from exceptions.BaseException:
__dict__
args
message

 
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.
 
  Methods defined here:
__init__(self, file, line, temporary=0, cond=None, funcname=None)
bpprint(self, out=None)
deleteMe(self)
disable(self)
enable(self)

Data and other attributes defined here:
bpbynumber = [None]
bplist = {}
next = 1

 
Data
        __all__ = ['BdbQuit', 'Bdb', 'Breakpoint']