Latest Tech News

Stay updated with the latest in technology, AI, cybersecurity, and more

Filtered by: debugger Clear Filter

Things you can do with a debugger but not with print debugging

Things you can do with a debugger but not with print debugging People do or do not use debuggers for a variety of reasons. For one thing, they are hard to setup in many codebases. Second, you can’t use them when your application is running on remote environments (such as kuberenetes). So, anecdotally, I have seen way more people using Print/ log.Debug compared to a debugger. Which is a shame, because while debug logging is convenient at times, debuggers can do some things which you can’t easil

Zig Error Patterns

Some patterns I have started to use when writing zig code with unit tests. Introduction Although I try to make good use of the debugger, I am quite used to print-based debugging, especially for unit tests. I wanted to explore some tricks to improve print-based debugging, and also incorporate the debugger more. print-based debugging improved One big problem with using print debugging is spammy output. If I am running something in a loop, and only one iteration of the loop has anything interes

Zig-Error-Patterns

Some patterns I have started to use when writing zig code with unit tests. Introduction Although I try to make good use of the debugger, I am quite used to print-based debugging, especially for unit tests. I wanted to explore some tricks to improve print-based debugging, and also incorporate the debugger more. print-based debugging improved One big problem with using print debugging is spammy output. If I am running something in a loop, and only one iteration of the loop has anything interes