Re:The unreasonable effectiveness of print debugging
by strikhedonia_ on Saturday April 24, 2021 @01:13PM
(#26926534)
Absolutely.
When people say they use 'print statements,' are they talking about log points (a debugger construct), logging or something else?
I should hope that, in most cases, they're not literally modifying their source code to achieve this. While there are a handful of scenarios in which this is necessary, on the whole it strikes me as inefficient, time-consuming and error-prone. In most environments, there are better ways to make this data observable.
I also don't see any contradiction between liking good logs and using the debugger when needed.