Attach to dap server over tramp - (Help attaching to python)
Updating this: I think my real question is how to attach to a dap server over tramp? It clearly happens when launching debugpy over tramp but how do I connect to it when the dap server is already running?
~~I'm sorry if this is a very basic question. I would like to use `dape` to attach to a python process for debugging. For example, if I have the python file below that I have launched, how do I connect to it using `dape`? I would have to use `debug`/`debug_adapter` binaries and not the python module to connect to it (a brief skim of the `dape` source files have `python -m debugpy` etc commands so I would need to change them).~~
~~Example python file that is already running~~
```
from collections.abc import Sequence
from absl import app
import debugpy
def main(argv: Sequence[str]) -> None:
print('hello world')
var1 = 1
debugpy.listen(('localhost', 5678))
debugpy.wait_for_client()
var2 = 'test'
breakpoint()
var3 = 'penguin'
print(var1)
print(var2)
print(var3)
if __name__ == "__main__":
app.run(main)~~
```
2 条评论