Double Your Value
by in CodeSOD on 2021-03-04There are many ways to debug your code. You might use an actual graphical debugger, wrestle with GDB, just spam print
statements, or rely on a logging framework to help you generate useful diagnostic output.
Since you're going to need some logging output no matter what, it's always good to heavily instrument your code. Using logging levels, you can control quite well what gets dumped when. Well, "LostLozz" had a co-worker who found an… interesting way to control logging.