Debugging with GDB
11–20 of 77 posts
Re: Debugging with GDB
#12How difficult is it to setup an editor like sublime text with gdb? I'm curious if it can be an alternative to visual studio, meaning a window showing the stack, locals, watch, etc?
I'd expect Emacs to have some GDB integration as well.
Re: Debugging with GDB
#13Does VIM has anything similar?
Re: Debugging with GDB
#14I generally stick pretty close to the classic "old but still good" tools, but GDB is something I really could not get a handle on (probably because it isn't a daily-use tool for me).
Re: Debugging with GDB
#15Took me some time to get familiar with it but GDB is well documented and fulfills its duty. It looks ancient but it is powerful. Do not underestimate the power of the print command! And the advanced stuff like revers-debugging, multi-threading (all-stop mode - which is the default - and the non-stop mode), binary manipulation (yep, it is possible), and remote debugging. Nowadays accompanied by stuff like debuginfod.…
It is powerful because it is ancient.
Re: Debugging with GDB
#16Re: Debugging with GDB
#17Not fun, when I model my code / unit test against a working sample and some method 25+ layers down does not work as expected as it does not have expected input when the stack frame does not even give me the caller. Is there a better way than peppering the codebase with logging statements?
Re: Debugging with GDB
#18Are there any easier to use C debuggers than GDB? All I really need to do is watch my variables change with each line.
Re: Debugging with GDB
#19Are there any easier to use C debuggers than GDB? All I really need to do is watch my variables change with each line.
Re: Debugging with GDB
#20I generally stick pretty close to the classic "old but still good" tools, but GDB is something I really could not get a handle on (probably because it isn't a daily-use tool for me).