Skip to content

Create a ProtocolServer plugin for debugpy #160215

@JDevlieghere

Description

@JDevlieghere

debugpy is an implementation of the Debug Adapter Protocol for Python 3. Similar to pdb you can use this to debug scripts running under LLDB by including the following snippet in your scripts, or by running it from the embedded command interpreter.

import debugpy
debugpy.listen(("localhost", 5678))

For MCP, I added the concept of a "ProtocolServer" plugin. We should create such a plugin for debugpy and dynamically inject this into the embedded script interpreter. That way folks can run:

(lldb) protocol-server start debugpy listen://localhost:59999

to start a Python DAP server. If they don't have debugpy installed, we can show a meaningful error message.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions