- cross-posted to:
- programming@beehaw.org
- cross-posted to:
- programming@beehaw.org
I’m firmly in the print statement / console.log camp but this article convinced me to try using a debugger.
You are not alone
Are there seriously professionals out there who think debuggers are useless? That is utterly baffling to me. Logging and tests are useful, but if something unexpected happens, the debugger is absolutely the first tool I’m reaching for unless I’m dealing with remote code (e.g. on a server) or some other scenario where using a debugger is a pain.
I tend to use print way to much especially considering the programming language I am using has a debugger built in and I dont use it nearly enough. ok I do use break so I can stop execution paired with printing but I really need to start actually using it. however yes debuggers are awesome if anyone hasn’t tried one out give it a try, even if you are using a smaller lesser known language a lot of languages are more compatible than you think, I recently used windbg with the D programming language if you haven’t heard of that language, exactly, so give your language of choice a few google searches and see if there are any that work.