为调试远程服务器配置 dap 模式

flu*_*aas 8 java debugging emacs

我正在使用带有 lsp 模式和 dap 模式的 Emacs。这是模板:

     (dap-register-debug-template
   "localhost:8000"
   (list :type "java"
         :request "attach"
         :hostName "localhost"
         :port 8000))
Run Code Online (Sandbox Code Playgroud)

我启动了我想通过远程调试调试的应用程序(如果我使用 Eclipse 作为调试器,它就可以工作)。它等待连接:

Listening for transport dt_socket at address: 8000
Run Code Online (Sandbox Code Playgroud)

当我使用 dap-debug 并选择模板时,新缓冲区保持黑色,应用程序一直在等待连接。 在此处输入图片说明

我也尝试过使用主机名,而不是 localhost,但仍然无法正常工作。我在 Windows 上使用 emacs 26。

我错过了什么??

Mat*_*ure -1

有一个未决问题attach表明,截至 2021 年 3 月 26 日,dap-mode 不支持调试远程 Python 进程的请求。