3 ms·
> > Sprinkling printf is an efficient way to debug. > I mostly work on threaded code, and print statements are my go to for tracking down weird timing issues.
by astatine 7y ago
> > Sprinkling printf is an efficient way to debug.
> I mostly work on threaded code, and print statements are my go to for tracking down weird timing issues.
I have found printf to subtly alter timing in threaded programs. Either masking issues or introducing them.
Anecdotally, I remember some programs being reported as working only with a printf present and bombing when removed.
- lostcolony 7y agoYeah, but the likelihood of a printf throwing the timing off is generally lower than a breakpoint.