3 ms·
Setting a breakpoint takes less time (and shows drastically more of the current state) than printf. Some breakpoints are automated, like breaking on exceptions.
by smt88 8y ago
Setting a breakpoint takes less time (and shows drastically more of the current state) than printf. Some breakpoints are automated, like breaking on exceptions.
There's also the problem that printf affects output for web programs and therefore isn't feasible if you want to eventually see what the output is.
It's like you have a sick patient and want to see how they're doing by cutting them in half. X-rays and scans make far more sense.