News for hackers. Stuff that matters.
Re:The unreasonable effectiveness of print debugging by Groxx on Saturday April 24, 2021 @07:01PM (#26928944)
(most) debuggers can print - I often use conditional breakpoints with the "condition" "print(thing)". It works great, doesn't require re-compiling, can be enabled/disabled with a single click, etc. It's handy when you want to see a lengthy sequence all at once.
Re:The unreasonable effectiveness of print debugging by crancher on Monday April 26, 2021 @12:33AM (#26939260)
Discovering this capability changed how I debug. Conditional breakpoints that log-only creating an always useful, easily enabled/disabled log of critical method results without littering the code itself with logging statements.