3 ms·
> Can you imagine debugging your C/C++/Rust/Go/... programs by adding printf everywhere and re-run the whole thing ? I'd say 90%-95% of the time that's entirel
by donatj 8y ago
> Can you imagine debugging your C/C++/Rust/Go/... programs by adding printf everywhere and re-run the whole thing ?
I'd say 90%-95% of the time that's entirely sufficient.
"The most effective debugging tool is still careful thought, coupled with judiciously placed print statements." - Brian Wilson Kernighan
- bpicolo 8y agoThat's really missing the best part of drop-in debugging, which is taking advantage of the REPL. You see what's wrong, and then can fiddle with code to see the exact lines of code to put in place to resolve the issue. REPL-driven development is pushed hard in e.g. Clojure land, but it's an insanely productive workflow in a ton of different languages