How much do you think about debugability when...

August 16th, 2021

How much do you think about debugability when...

How much do you think about debugability when you are coding?" "" "I can’t say I think about it a lot, but it’s definitely on my mind. Unless I’m writing a script used once, I always want to think of that code’s maintainability. Setting myself up to debug issues is a crucial part of that, and future-me thanks now-me for any efforts towards a more easily debugged piece of code." "" "Whenever I’m adding some tricky logic, I’ll ensure that errors and edge cases produce logs to help determine what went wrong. I’ll make sure the logs are easily searchable and ideally have some alerting system for the worst errors that really shouldn’t be happening, and therefore require immediate attention. " "" "Debugability also means thinking about the tools you use and ensuring you understand how to use them best to debug your code. For example, can you set up breakpoints in your IDE? How easy is it to search logs? How quickly can you test a change to see if it worked? " "" "Having a game plan for debugging your code will help when issues come up, which is inevitable if your software is being used! #bendevtip


Original post on LinkedIn