2 ms·
This is idiotic advice. The greatest benefit of using a debugger is to get a holistic view of what is really going on in your program right now, which may not m
by nradov 18y ago
This is idiotic advice. The greatest benefit of using a debugger is to get a holistic view of what is really going on in your program right now, which may not match your preconceived notions of what you think it's doing. There's no way you can make the machine give you that kind of insight. I make it a practice to step through all of my code, even when it works correctly and I've written unit tests for everything. By watching the live view of control flow and variables I often find defects that hadn't yet shown up as visible bugs, or realize that there is a better way to do something.
In my experience, the programmers who don't like or use interactive debuggers have never learned to use a really good one.