pdbr
Pdb with Rich library.
What it is and what it does
pdbr is a wrapper around Python's standard debugger that replaces plain-text output with colored, structured formatting via Rich. When you import pdbr or set PYTHONBREAKPOINT to pdbr.set_trace, it intercepts breakpoint() calls and drops you into an enhanced debugger session. It adds new commands like inspect (object introspection), vars (local variables as a table), log (recent log records from a ring buffer), whereami (runtime context snapshot), and diff (semantic comparison of two expressions). It also installs a global Rich traceback handler and a logging handler on the root logger to capture records for inspection.
The package is designed for developers who spend time in the debugger and want better visibility into state. It integrates with IPython, pytest, Django, Celery, and OpenTelemetry, auto-detecting framework context when available. Configuration is read from setup.cfg, allowing you to customize output style, history, and logging behavior. Because it only depends on pyreadline3 and rich, it has minimal friction to add to an existing project.
Use it for:
- Inspect object attributes and method signatures inline at a breakpoint without leaving the debugger
- View local variables as a formatted table or tree to quickly understand frame state
- Search for a phrase in the current source file and jump to matching lines during debugging
- Review log records captured just before a breakpoint to understand what happened in the application
- Compare two complex objects side-by-side to spot structural differences at a breakpoint
- Snapshot runtime context at a breakpoint for observability across frameworks
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
pdbr enhances Python's built-in debugger with colored output and new inspection commands powered by Rich, making breakpoint sessions more readable and interactive.
Yes. pdbr is actively maintained, has low install friction, no known vulnerabilities, and works across current Python versions. Its new debugger commands and colored output genuinely improve the debugging experience. The only caveat is that its license status is unclear, so verify licensing terms if you have strict redistribution requirements. For standard development use, it's a straightforward win.
Install
pdbr on PyPI
pip
pip install pdbruv
uv add pdbrpoetry
poetry add pdbrInstalling pdbr
Before you install
Low install friction: pure Python wheel with only two runtime dependencies (pyreadline3 and rich). Actively maintained with a release within the last 30 days and 349 repository stars.
Quickstart
pip install pdbr
import pdbr
breakpoint() # drops into enhanced debugger
Requires Python 3.10 or later (supports up to 3.14)
Verify before relying
- Whether the package's unclear license status affects redistribution or commercial use
- Whether all new commands work equally well across all supported Python versions (3.10–3.14)
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (<4.0,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — pyreadline3, rich |
| Maintenance | actively maintained — 30 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 8,511,126/month — #1,616 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pdbr-0.9.8-py3-none-any.whl
Tags
More Quality Assurance packages
Coverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
ruffRuff is a Python linter and code formatter…
permissive · top 1,000 on PyPI
pexpectPexpect spawns and controls interactive console…
permissive · top 1,000 on PyPI
blackBlack reformats Python source code to a…
permissive · top 1,000 on PyPI
pytest-xdistpytest-xdist distributes pytest tests across…
permissive · top 1,000 on PyPI
cfn-lintValidates AWS CloudFormation templates in YAML…
permissive · top 1,000 on PyPI
web-pdbWeb-PDB provides a web browser interface for…
permissive · top 15,000 on PyPI
pdbppdbp is an enhanced Python debugger that…
permissive · top 5,000 on PyPI
pudbPuDB is a full-screen console-based visual…
permissive · top 5,000 on PyPI
ipdbipdb is an IPython-enabled debugger that…
permissive · top 5,000 on PyPI
pdbpppdbpp is a drop-in replacement for Python's…
permissive · top 5,000 on PyPI
rpdbrpdb is a remote debugger that wraps Python's…
unclear · top 15,000 on PyPI
remote-pdbExposes Python's debugger (pdb) over a TCP…
permissive · top 5,000 on PyPI
flake8-debuggerA flake8 plugin that detects debugger…
permissive · top 15,000 on PyPI
lib-log-richProvides Rich-styled colored console logging…
permissive · top 15,000 on PyPI
django-richIntegrates Rich's terminal formatting and…
permissive · top 15,000 on PyPI