PuDB review: a full-screen console debugger for Python
Full-screen console debugger for Python
At a glance
- What is it?
- PuDB brings a GUI-style debugger layout into the terminal, with source, stack, breakpoints and variables on one screen. It suits developers who live in a shell and want a tutorial-friendly path into the debugger.
- Who is it for?
- PuDB is worth adopting if you debug Python in a terminal, want breakpoints and variables visible at the same time, and are comfortable with a curses interface. Skip it if you need a graphical debugger or your environment cannot run a full-screen curses application.
- Can I use it commercially?
- Check first. The repository uses a licence we do not classify automatically, so read its LICENSE file before any commercial use.
- Is it still maintained?
- Yes. The repository last received commits 1 day ago.
- What is it written in?
- Mainly Python, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 24, 2026, and from our analysis. They are not legal advice.
Star history
- inducer/pudb3,255 ★ · +10
| Repository | 2026-09-24 | 2026-11-24 |
|---|---|---|
| inducer/pudb | 3.2k | 3.3k |
10 Stars in the last 61 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
What PuDB solves for terminal-bound Python developers
Standard pdb gives you a prompt. You type commands, print values, and step through code one line at a time, but you cannot see the source, the stack, the breakpoints and the variables at the same time. PuDB's stated goal is to provide the niceties of modern GUI-based debuggers in a more lightweight and keyboard-friendly package, so you can debug code right where you write and test it, in a terminal. That is the specific problem: losing context when you switch between a prompt and your editor.
The project targets developers who work over SSH, inside containers, on remote machines, or simply prefer a terminal. The classifiers list Environment :: Console and Environment :: Console :: Curses, and the operating system classifiers cover POSIX and Unix. The README also says the tool should work with Python 3.6 and newer, while pyproject.toml declares requires-python = "~=3.10", so the packaging metadata is the stricter and more current statement. If you are on an older interpreter, the README points to versions 2019.2 and older for Python 2.7 support.
How the curses interface arranges source, stack and variables
PuDB is built on urwid, the console user interface library listed in the dependencies alongside jedi for completion, pygments for syntax highlighting, urwid_readline and typing_extensions. The layout is the mechanism: syntax-highlighted source, the stack, breakpoints and variables are all visible at once and continuously updated. Variable displays can be expanded, collapsed and have various customization options, which matters when you are inspecting nested objects instead of printing them repeatedly.
Navigation is keyboard-based and uses single keystrokes. The README says PuDB understands cursor keys and Vi shortcuts, and that other keys are inspired by the corresponding pdb commands. Breakpoints are set by pointing at a source line and hitting b, then edited visually in the breakpoints window; t runs to the line under the cursor. Pressing ! drops you into a Python shell in the current environment, and Ctrl-X opens a command prompt alongside the source code. A module browser, invoked with m, shows loaded modules and lets you load new ones and reload existing ones. Exception handling gets special emphasis: a post-mortem mode makes it easy to retrace a crashing program's last steps. The README also mentions controlling the debugger from a separate terminal and IPython integration, with details on the project wiki rather than in the README itself.
Installing PuDB and running your first session
PuDB is distributed on the Python Package Index, and pyproject.toml defines the console entry point pudb = "pudb.run:main". The README's development section shows the Git clone command for the development version:
git clone https://github.com/inducer/pudb.gitAfter installing the package, the pudb command is available. The repository includes a try-the-debugger.sh script at the top level and a debug_me.py file, which are the project's own way to get a first session running; the README does not spell out their invocation, so read the script before running it. Once the interface opens, the README describes the keys you need first: b sets a breakpoint on the line under the cursor, t runs to that line, and ! opens a Python shell in the current environment. The examples/ directory contains files such as shell.py and stringifier.py that show how the debugger is invoked programmatically, and the README points to the documentation site and the mailing list for patches and requests for help.
There is an optional completion extra. Installing it pulls in shtab, which the packaging metadata lists under [project.optional-dependencies] as completion.
Where PuDB is the wrong tool
PuDB is a full-screen curses application, and that is a real constraint rather than a detail. It needs a terminal that can host a full-screen interface, so it does not fit environments that only offer a plain line-oriented console, and it is not a graphical debugger. If your team standardizes on an IDE debugger with mouse interaction, watch windows and integrated test runners, PuDB will feel like a step back even though it is faster to start over SSH.
The packaging metadata also marks the project's development status as Beta, which is worth reading literally: the interface is mature in daily use, but the classifier does not promise API stability. The README does not document rollback or downgrade procedures, so if a release breaks your workflow you should check the release notes and the mailing list rather than expect a documented recovery path. Finally, the README's Python support statement and pyproject.toml's requires-python disagree, so verify your interpreter version against the packaging metadata before installing on an older system.
PuDB compared with pdb and pytest-pudb
The obvious alternative is pdb, which ships with Python and needs no installation. The difference is in approach rather than features: pdb is a command prompt where you inspect state by typing commands, while PuDB is a visual interface where source, stack, breakpoints and variables are on screen and continuously updated. If you only need to drop into a shell, print a value and continue, pdb is lighter and always present. If you need to understand control flow across many frames, the PuDB layout removes the repeated printing.
A second path is the pytest integration. The repository's topics include pytest and pytest-plugin, which points to running tests under the debugger rather than debugging a standalone script. That is a different workflow: instead of launching a program and setting breakpoints interactively, you let the test runner reach a failure and inspect it. The README does not document the pytest plugin setup, so read the plugin's own documentation before assuming the flags. The examples/remote-debug.py file suggests debugging a process in another environment, which overlaps with the README's mention of controlling the debugger from a separate terminal, though the README gives no configuration keys for that mode.
Maintenance, licensing and upgrade cost
The repository is not archived, and the last push was on 2026-09-20, so the project is being worked on. Recent releases include v2025.1.5 on 2025-12-06, v2025.1.4 on 2025-12-05 and v2025.1.3 on 2025-10-21. Release cadence has been steady, and the dependency list shows active pinning work: pygments is constrained to >=2.19 with a linked issue, and urwid appears twice, the second time as >=2.5.1 with a comment pointing at a GitHub issue. That kind of pinning is a maintenance signal, but it also means PuDB inherits urwid's release behaviour. Upgrading PuDB can mean upgrading urwid with it.
The licence needs a direct look. The repository metadata reports NOASSERTION, while pyproject.toml declares license = "MIT". Those two statements do not match, and the LICENSE file at the top level is the authority. If you redistribute PuDB or bundle it into a product, read that file rather than relying on the classifier. Nothing here is legal advice; it is a note that the metadata is inconsistent and the file is the source to check.
Upgrade cost is otherwise low. There is no server, no database and no migration step. The main risk is the curses dependency on the target terminal and the Python version floor in requires-python.
FAQ
The questions below cover installation, the relationship to pdb, and the terminal requirement. Answers come from the README and packaging metadata only.
Editorial conclusion
PuDB is worth adopting if you debug Python in a terminal, want breakpoints and variables visible at the same time, and are comfortable with a curses interface. Skip it if you need a graphical debugger or your environment cannot run a full-screen curses application. Before adopting, verify that your Python version matches requires-python, check that your terminal handles the layout, and read the LICENSE file since the repository metadata reports NOASSERTION while pyproject.toml declares MIT.
Frequently asked questions
How do I install PuDB?
The package is published on the Python Package Index, and pyproject.toml declares a console script named pudb, so the command becomes available after installation. The README also shows the git clone command for the development version.
What is the difference between PuDB and pdb?
pdb is a command prompt where you inspect state by typing commands. PuDB is a full-screen console interface where syntax-highlighted source, the stack, breakpoints and variables are visible at once and continuously updated, with keys inspired by the corresponding pdb commands.
Which Python versions does PuDB support?
The README says PuDB should work with Python 3.6 and newer, but pyproject.toml declares requires-python = "~=3.10". Check the packaging metadata for your interpreter version.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/inducer-pudb)Star history chart for your README
[](https://hysenlabs.com/projects/inducer-pudb)Was this useful?