pdb
Stdlib — TestingPython 2.0+Intermediate
Interactive Python debugger: breakpoints, stepping, inspection
Quick Info
- Documentation
- Official Docs
- Python Version
- 2.0+
- Dependencies
- None — Python Standard Library
- Install
Included with Python
Learn by Difficulty
Quick Example
python
import pdb print(f"Module: pdb") print(f"Contents: {dir(pdb)[:10]}")
The pdb module is part of Python's standard library. Interactive Python debugger: breakpoints, stepping, inspection.
Try in PlaygroundTags
stdlibdebuggingbreakpointinteractive
Related Items
breakpoint()
Built-in Function
Drops into the debugger at the point of the call
traceback
Stdlib — Testing
Print and format stack traces for exceptions
logging
Stdlib — Misc
Flexible logging: loggers, handlers, formatters, levels
faulthandler
Stdlib — Testing
Dump tracebacks on crash (segfault, timeout, signal)