r/Python • u/jnsquire • Mar 06 '26
Showcase Dapper: a Python-native Debug Adapter Protocol implementation
What My Project Does
I’ve been building Dapper, a Python implementation of the Debug Adapter Protocol.
At the basic level, it does the things you’d expect from a debugger backend: breakpoints, stepping, stack inspection, variable inspection, expression evaluation, and editor integration.
Where it gets more interesting is that I’ve been using it as a place to explore some more ambitious debugger features in Python, including:
hot reload while paused
asyncio task inspection and async-aware stepping
watchpoints and richer variable presentation
multiple runtime / transport modes
agent-facing debugger tooling in VS Code, so an assistant can launch code, inspect paused state, evaluate expressions, manage breakpoints, and step execution through structured tools instead of just pretending to be a user in a terminal
Repo:
https://github.com/jnsquire/dapper
Docs:
https://jnsquire.github.io/dapper/
Target Audience
This is probably most interesting to:
people who work on Python tooling or debuggers
people interested in DAP adapters or VS Code integration
people who care about async debugging, hot reload, or runtime introspection
people experimenting with agent-assisted development and want a debugger that can be driven through actual tool calls
I wouldn’t describe it as a toy project. It already implements a fairly large chunk of debugger functionality. But I also wouldn’t pitch it as “everyone should switch to this tomorrow.” It’s a serious project, but still an evolving one.
Comparison
The most obvious comparison is debugpy.
The difference is mostly in what I’m trying to optimize for.
Dapper is not just meant to be a standard Python debugger. It’s also a place to explore debugger design ideas that are a bit more experimental or Python-specific, like:
hot reload during a paused session
asyncio-aware inspection and stepping
structured agent-facing debugger operations
alternative runtime strategies around frame-eval and newer CPython hooks
So the pitch is less “this replaces debugpy right now” and more “this is an alternative Python debugger architecture with some interesting features and directions.”
1
u/baseketball Mar 08 '26
Should change the name if you want people to find your project. There's already a very popular .NET database abstraction library called Dapper.