-
Notifications
You must be signed in to change notification settings - Fork 15.4k
Open
Labels
Description
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.