4 ms·
If you don't care how long it takes, sure, tracing with printf works. But a debugger accomplishes the same task in minutes rather than hours. Even if you know o
by TillE 11y ago
If you don't care how long it takes, sure, tracing with printf works. But a debugger accomplishes the same task in minutes rather than hours. Even if you know only the very basics of how to use a debugger, it's an extremely effective tool.
- ska 11y agoIt's not always effective - many developers will often save minutes of thinking by spending hours dicking about in a debugger and setting up state. But it is true that for some types of bugs a step debugger is damn handy. And for some types, mostly a distraction.