4 ms·
If building and running takes a second, printf is great (especially with inotifywait - as soon as a file is saved in the editor, trigger a build and run in a se
by zh3 4y ago
If building and running takes a second, printf is great (especially with inotifywait - as soon as a file is saved in the editor, trigger a build and run in a separate window). Even on programs approaching 100K LoC, ccache and make build the whole thing in less than a second.
On the other hand, if build/run is a 15-minute cycle, a debugger makes a lot more sense; also for things like apparently random crashes that leave a coredump.