4 ms·
I do this too; but it seems to me this is the case where using a debugging tool would probably save more time. Looking at the effort involved: here you have to
by rgoulter 6y ago
I do this too; but it seems to me this is the case where using a debugging tool would probably save more time.
Looking at the effort involved: here you have to spend the time to add a bunch of print statements throughout bits of code; then compile/run the program (repeating until you've found the right place).
With a debugger: you'd have to take the time to set up the environment and learn how to use it (e.g. set breakpoints in parts where things would be interesting). But then the "look at interesting values" wherever isn't significant additional effort.