Emacs freezes when debugging a program that segfaults (DAP vscode-cpptools)

266 Views Asked by At

I'm having an issue when debugging c++ programs in emacs (using dap-mode, LSP, projectile...):

I have no problem with the debugger, as long as my code doesn't crash. But when the debugger hits a segmentation fault, I get the usual messages that I would see in gdb for instance, but then I also get this line:

Stopping due to fatal error: NotImplementedException: No handler implemented for request type: 'ExceptionInfoRequest'!

Then emacs freezes and the only way to unfreeze it is to kill clangd. however, when I get back control over emacs, LSP detects that clangd crashed, and suggests I restart the server. Even if I say no, emacs hangs again and I can only kill emacs to close it.

I am fairly new to emacs, and just discovered LSP / DAP integration, so I apologize if I missed anything obvious during the setup process. I don't know how to get further information on this error, I am not sure if the problem is in the vscode-cpptools, in clangd, emacs, or in the dap-mode package. Has anyone encountered the issue, or knows how to fix this?

0

There are 0 best solutions below