Testing and Diagnostics Modules
bdb
Base framework for implementing Python debuggers. Bdb manages breakpoint and stepping state and dispatches tracing events to overridable hooks. It does not supply an interactive command interface by itself. Use pdb for a ready-made interactive debugger. The example inspects breakpoint bookkeeping without starting a session.
Formal Syntax & Structure
python syntaxpython
import bdbReturn Value
module
Module namespace available through import; import is a statement, not a value-returning expression.
Working Example
Example Snippetpython
from bdb import Bdbdebugger = Bdb()print(debugger.get_all_breaks())