Pleasant debugging with GDB and DDD
begriffs.com
begriffs.com
The main downside of both VSCode extensions is the very limited data view panel (this is indeed an area where DDD was, and still is revolutionary), but unfortunately the whole are of user friendly debugging solutions is in stagnation or even regressing :/
I mainly use gdb -tui these days, with some vscode+gdb(or, is it lldb?), both worked OK for me, but neither is as complete as DDD.
I can't tell you how many times QtCreator's debugging interface got stuck or didn't understand GDB. It's very frustrating. I'd rather use GDB directly instead. The only thing missing in GDB is an easy way to turn pretty printers on and off (they get in the way of looking at internals and don't always see past pointers especially smart pointers)
VSCode's debugging interface is... simple. I haven't used it much from trauma of using QtCreator's. Is it really decent?
> unfortunately the whole are of user friendly debugging solutions is in stagnation or even regressing
Sadly, I fully agree with the statement.
https://www.gnu.org/software/emacs/tour/images/gdb.png
(Image taken from the Emacs Tour: https://www.gnu.org/software/emacs/tour/)
but i never knew it had plotting support, holy moly! my absolute favorite way to debug very complex things is to visualize them. in a past life while debugging some fairly complex distributed systems issues i found myself yearning for plotting capabilities in my debugger, which were nary to be found.
as one gets older, it can be become harder to reason about lists of numbers in a terminal. that's what plots are made for, that's what plots solve. three cheers for computers that can plot!
One important thing to mention is how well shown is GDB scripting. I haven't used it or found out how to use it, but I save this article just in case I need it. Props to the writer.