3 ms·
I haven't tried it out, as I've long been more of a logging-driven debugger, but there's an analogous tool for debuggers called dap-mode: https://emacs-lsp.git
by NateEag 5y ago
I haven't tried it out, as I've long been more of a logging-driven debugger, but there's an analogous tool for debuggers called dap-mode:
https://emacs-lsp.github.io/dap-mode/ 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/ https://microsoft.github.io/debug-adapter-protocol/
- benreesman 5y agoYou 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.
- isaiahg 5y agoAh thank you for this, I ran across pwndbg some months back and I've been trying to find it again since.
- NateEag 5y agoI'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 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-lldb.el 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.
- b3morales 5y agoIf 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 https://github.com/realgud/realgud