←back to thread

376 points turrini | 7 comments | | HN request time: 0.206s | source | bottom
1. VyseofArcadia ◴[] No.42147073[source]
For the Emacs users in the crowd, GUD is a pretty great GDB integration.
replies(4): >>42147285 #>>42147467 #>>42148175 #>>42156144 #
2. cherryteastain ◴[] No.42147285[source]
lsp-mode+dap-mode also work well but requires some manual fiddling with launch.json files
3. alexhutcheson ◴[] No.42147467[source]
I prefer the GDB Graphical Interface in Emacs[1] (M-x gdb), rather than the more basic integration via GUD[2] (M-x gud-gdb). I’ve had to switch to GUD to run lldb recently, and I miss having dedicated windows that show breakpoints, threads, the current stack, etc.

The one nice thing about GUD is that the interface is consistent across debuggers, so I don’t need to refresh myself on the keyboard shortcuts when switching between debugging Python with pdb and C++ with lldb.

[1] https://www.gnu.org/software/emacs/manual/html_node/emacs/GD...

[2] https://www.gnu.org/software/emacs/manual/html_node/emacs/St...

4. seanw444 ◴[] No.42148175[source]
Ever since the advent of LSP, Emacs has felt superior to everything else. I have no reason to leave it. Especially once they made it faster with native comp.

Like why should I keep trying this month's new editor with a couple new gimmicky features, when I can just pop a plugin onto Emacs that adds that exact feature set, while maintaining everything else how I like it.

I first really got into coding when Atom was a thing, and then that died off and became VS Code and I was pretty sad about it, because while VS Code is good, it doesn't follow the same philosophy as Atom. But then I took the time to learn Emacs ~4 years ago, and nothing new ever comes close to convincing me it's outdated tech that I need to move on from.

That was a random rant, but I'm just really appreciate Emacs, and I'm glad it's stuck around.

replies(1): >>42148264 #
5. VyseofArcadia ◴[] No.42148264[source]
Even before the dawn of the LSP era, Emacs was pretty great with ctags.
replies(1): >>42148303 #
6. seanw444 ◴[] No.42148303{3}[source]
Yeah I first gave it a try before LSP and I don't think I was ready to be redpilled yet, because it didn't stick. So I can't comment on the state of it before then. I kinda joined once the LSP stuff got fairly smoothed out.
7. idahoduncan ◴[] No.42156144[source]
dape ( https://github.com/svaante/dape# ) is a great option for languages with debuggers implementing the Debug Adapter Protocol. Combined with debugpy it's killed M-x pdb for me, and has a very similar UI to M-x gdb.