3 ms·
The print statement is persisted in your code so you can easily see where you've been with `hg/git diff`. Using a debugger I find myself repeating the same ste
by tantaman 5y ago
The print statement is persisted in your code so you can easily see where you've been with `hg/git diff`.
Using a debugger I find myself repeating the same steps over and over again that I would have done/written once via print debugging.
That and once my system is deployed and I need to debug issues in production I'm relying on logs which are effectively print statements. So why would I want my dev debug and production debug flows to diverge? Doing print debugging gives me experience in what sort of information is useful to log as well as what is loggable.