On this page
bdb.Breakpoint
Prev: bdb.BdbQuit | Up: bdb
Rel: bdb.Bdb, bdb.BdbQuit
Ref: docs.python.org — bdb.Breakpoint
Tags: #public #python3 #stdlib #bdb
Import
import bdb
from bdb import Breakpoint
Signature & Overview
bdb.Breakpoint(file, line, temporary=False, cond=None, funcname=None)
Breakpoint class.
Methods & Attributes
Breakpoint.bpformat(self)— Return a string with information about the breakpoint.Breakpoint.bpprint(self, out=None)— Print the output of bpformat().Breakpoint.clearBreakpoints()—Breakpoint.clearBreakpointsmethod/property.Breakpoint.deleteMe(self)— Delete the breakpoint from the list associated to a file:line.Breakpoint.disable(self)— Mark the breakpoint as disabled.Breakpoint.enable(self)— Mark the breakpoint as enabled.
Usage
import bdb
bp = bdb.Breakpoint("demo.py", 10, temporary=True)
assert bp.file == "demo.py" and bp.line == 10
bp.deleteMe()
Gotchas
- Managed automatically by
Bdb.set_break()/clear_break().
REPL Inspect
from bdb import Breakpoint
help(Breakpoint)
Linked from
Related notes
- tuts/python3/stdlib_module/bdb/Bdb Linked here; links to this page; shared tags: #bdb, #stdlib
- tuts/python3/stdlib_module/bdb/BdbQuit Linked here; links to this page; shared tags: #bdb, #stdlib
- tuts/python3/stdlib_module/bdb links to this page; shared tags: #stdlib
- tuts/c/stdlib shared tags: #stdlib
- tuts/c/stdlib/assert shared tags: #stdlib
- tuts/c/stdlib/assert/assert shared tags: #stdlib
- tuts/c/stdlib/assert/static_assert shared tags: #stdlib
- tuts/c/stdlib/ctype shared tags: #stdlib
- tuts/c/stdlib/ctype/isalpha shared tags: #stdlib
- tuts/c/stdlib/ctype/isdigit shared tags: #stdlib