Discussion about this post

User's avatar
Jakov Spahija's avatar

I hope you are eventually be going over topics like DWARF.

Eli Bendersky has a good couple of articles on debuggers too.

I work in embedded software so with remote debugging, we dont have the luxury of PTrace and rely on RTOS/architecture support. But this just makes me appreciate the fundamentals even more.

Expand full comment
Simon Schröder's avatar

Most of the thoughts about debugging have been shaped by people that decades ago didn't have good visual debuggers. If you start out with gdb on the command line it certainly feels more like learning braille than having vision. Visual debuggers like RAD (but certainly not ddd) make debuggers feel more like having vision.

The reason why I learned to use debuggers instead of printf debugging is because inserting printf's very often changed the code enough tha the error was gone. If you then remove the printf the error is back. This is really annoying and frustrating. So, for certain kind of bugs (most likely memory related) debuggers are far superior to printf debugging. Once you have started using debuggers there is no going back to printf debugging.

Expand full comment
5 more comments...

No posts