[-] FreeAd7233@alien.top 1 points 11 months ago

Yes, I also tried to use --pid to attach to a python process, and failed too.

[-] FreeAd7233@alien.top 1 points 11 months ago

Do you think if it is okay to open 2 emacs simultaneously (one with EXWM and one that runs within the EXWM)?

What I mean is that if it will bring a lot of headaches, say, key bindings conflicts?

[-] FreeAd7233@alien.top 1 points 11 months ago

I see, thanks for correcting me.

I see that this post https://github.com/Microsoft/vscode-python/issues/1078 suggested that debugpy can already attach to a local Python process.

[-] FreeAd7233@alien.top 1 points 11 months ago

I see, thanks for correcting me.

I see that this post https://github.com/Microsoft/vscode-python/issues/1078 suggested that debugpy can already attach to a local Python process.

[-] FreeAd7233@alien.top 1 points 11 months ago

I just tried the example configuration (for python) from github and the dap works perfectly fine to me, everything works as expected except the only one thing: post-run cleanup.

I do notice that there are some leak problems: the debugpy process will not exit even when the debug session terminated, keeping high CPU usage even after emacs exits.

It is a tricky problem and not easily reproduce, I will try to dive into this problem more to make it as reproducible as possible.

Besides, the go debugger (delve) works perfectly to me with the example configuration.

[-] FreeAd7233@alien.top 1 points 11 months ago

I believe this is out of the scope of the DAP protocol, I believe even VSCode cannot do it based on my understanding.

If you want to debug a running session, just use ipdb or pdb.

[-] FreeAd7233@alien.top 1 points 11 months ago

I am not the author of this plugin😂 just want to share this exciting news with Redditers

1
submitted 11 months ago by FreeAd7233@alien.top to c/emacs@communick.news

https://github.com/svaante/dape#

Given that eglot has been part of the core emacs, I believe this is a long lasting wish for a lot of emacsers that has finally been fulfilled. (a stand alone DAP implementation that does not rely on LSP-mode)

FreeAd7233

joined 11 months ago