Re:Building an Intelligent Emacs
by benreesman on Saturday February 12, 2022 @04:13AM
(#30311270)
You might be able to save me some research on this: can DAP drive GDB/LLDB in a seamless way without VSCode as a front-end? GDB has always felt like a time machine back to 1987 at best, `pwndbg` is like a big upgrade on GDB usability against that baseline.
Sidebar: `pwndbg` is extremely easy to build and install and makes terminal GDB suck mucho less, but would be no match for an LSP-style integration that didn't have a ton of rough edges.
If you're asking because you want to use LLDB or GDB inside Emacs, the RealGUD project is a good option: https://github.com/realgud/realgud
I'm not sure.
I can see that this extension claims to make debugging with GDB work in VS Code:
https://github.com/WebFreak001/code-debug
and that at least for emacs there exists a plugin to use that extension:
https://github.com/emacs-lsp/dap-mode/blob/master/dap-gdb-ll...
Not having tried it, I can't speak to how well it works, and I don't know if there are adapters for other editors.
https://emacs-lsp.github.io/dap-mode/
Like lsp-mode, it is also built on top of an open standard from Microsoft, the Debug Adapter Protocol:
https://microsoft.github.io/debug-adapter-protocol/