Re:Debug Programs by Modifying Them
by hyperman1 on Wednesday April 28, 2021 @06:28AM
(#26967788)
I have different styles of debugging dependent of context.
If I inherit code or libraries from someone else, I use the debugger without shame.
For my own code, using the debugger is a sign something is wrong. This demonstrates a need for extra logging: How can I troubleshoot software in production in the field if I can't do it on my own machine.
Print style debugging is usually reserved for interfaces between my and someone else's code, to clarify the contract.
If I inherit code or libraries from someone else, I use the debugger without shame.
For my own code, using the debugger is a sign something is wrong. This demonstrates a need for extra logging: How can I troubleshoot software in production in the field if I can't do it on my own machine.
Print style debugging is usually reserved for interfaces between my and someone else's code, to clarify the contract.
None of this is a religion of course.