:mod:`bdb` --- Debugger framework
The :mod:`bdb` module handles basic debugger functions, like setting breakpoints or managing execution via the debugger.
The following exception is defined:
The :mod:`bdb` module also defines two classes:
The :class:`Bdb` acts as a generic Python debugger base class.
This class takes care of the details of the trace facility; a derived class should implement user interaction. The standard debugger class (:class:`pdb.Pdb`) is an example.
The following methods of :class:`Bdb` normally don't need to be overridden.
Normally derived classes don't override the following methods, but they may if they want to redefine the definition of stopping and breakpoints.
Derived classes should override these methods to gain control over debugger operation.
Derived classes and clients can call the following methods to affect the stepping state.
Derived classes and clients can call the following methods to manipulate breakpoints. These methods return a string containing an error message if something went wrong, or None if all is well.
Derived classes and clients can call the following methods to get a data structure representing a stack trace.
The following two methods can be called by clients to use a debugger to debug a :term:`statement`, given as a string.
Finally, the module defines the following functions: