▲ | jacquesm 6 days ago | |
The right tool for the right job. If someone gets the job done with printf() then that would be good enough for me. Interactive debuggers are a great way to waste a ton of time and get absolutely nowhere. They do have their uses but those are not all that common. The biggest usecase for me for GDB has been to inspect stacktraces, having a good mental model of the software you are working on is usually enough to tell you exactly what went wrong if you know where it went wrong. Lots of people spend way too much time debugging code instead of thinking about it before writing. Oh, and testing >> debugging. |