FreeAd7233

joined 1 year ago
[–] [email protected] 1 points 1 year ago (1 children)

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

[–] [email protected] 1 points 1 year ago (2 children)

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?

[–] [email protected] 1 points 1 year 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.

[–] [email protected] 1 points 1 year ago (1 children)

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.

[–] [email protected] 1 points 1 year 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.

[–] [email protected] 1 points 1 year ago (4 children)

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.

[–] [email protected] 1 points 1 year ago

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

 

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)