| Issue |
160215
|
| Summary |
Create a ProtocolServer plugin for debugpy
|
| Labels |
lldb
|
| Assignees |
JDevlieghere
|
| Reporter |
JDevlieghere
|
[debugpy](https://github.com/microsoft/debugpy) is an implementation of the [Debug Adapter Protocol](https://microsoft.github.io/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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs