我正在使用带有 lsp 模式和 dap 模式的 Emacs。
这是模板:
(dap-register-debug-template
"localhost:8000"
(list :type "java"
:request "attach"
:hostName "localhost"
:port 8000))
我启动了我想通过远程调试调试的应用程序(如果我使用 Eclipse 作为调试器,它就可以工作)。它等待连接:
Listening for transport dt_socket at address: 8000
当我使用 dap-debug 并选择模板时,新缓冲区保持黑色,应用程序一直在等待连接。
我也尝试过使用主机名,而不是 localhost,但仍然无法正常工作。
我在 Windows 上使用 emacs 26。
我错过了什么??
最佳答案
有一个open issue表示 dap-mode 不支持 attach
截至 2021 年 3 月 26 日调试远程 Python 进程的请求。
关于java - 配置 dap-mode 调试远程服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61716069/