Python bdb Module
Definition and Usage
The bdb module provides a framework for building debuggers in Python.
It implements the core debugger logic used by pdb, including breakpoints, stepping, and tracing function calls.
Members
Member | Description |
---|---|
Bdb | Base debugger class with core tracing and stepping functionality. |
BdbQuit | Exception used to quit the debugger. |
Breakpoint | Represents a breakpoint in the debugger. |
clear_break() | Remove a breakpoint at a given file and line. |
get_frame() | Return the current frame. |
run() | Run a statement under debugger control (like exec ). |
runcall() | Call a function under debugger control and return its result. |
runcode() | Execute a compiled code object under debugger control. |
set_break() | Set a breakpoint at a given file and line (optionally with condition). |
set_continue() | Continue execution until the next breakpoint is hit. |
set_next() | Step to the next line in the current function. |
set_step() | Single-step (stop at the very next possible line). |
set_trace() | Start debugging from the current frame (utility). |