PyDocs

Nav

Debugging and profiling

Breakpoint

bdb

class (source)
  • Breakpoint(self, file, line, temporary=False, cond=None, funcname=None)
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.

When creating a breakpoint, its associated filename should be
in canonical form.  If funcname is defined, a breakpoint hit will be
counted when the first line of that function is executed.  A
conditional breakpoint always counts a hit.
Members of Breakpoint

b

bpbynumber
Numeric index for a single instance of a Breakpoint.
bpformat
Return a string with information about the breakpoint.
bplist
Dictionary of Breakpoint instances indexed by (file, line) tuples.
bpprint
Print the output of bpformat().

c

cond
Condition for evaluating a Breakpoint at (file, line).

d

deleteMe
Delete the breakpoint from the list associated to a file:line.
disable
Mark the breakpoint as disabled.

e

enable
Mark the breakpoint as enabled.
enabled
True if Breakpoint is enabled.

f

file
File name of the Breakpoint.
funcname
Function name that defines whether a Breakpoint is hit upon entering the function.

h

hits
Count of the number of times a Breakpoint has been hit.

i

ignore
Number of times to ignore a Breakpoint.

l

line
Line number of the Breakpoint within file.

t

temporary
True if a Breakpoint at (file, line) is temporary.
0 Examples
No examples for bdb/Breakpoint.
See Also
No see-alsos for bdb/Breakpoint
0 Notes
No notes for Breakpoint