News for hackers. Stuff that matters.
Re:Don't Look Down on Print Debugging by bluGill on Saturday November 23, 2024 @09:57AM (#42221232)
Print'here' is very useful. I get a log of how many times that funcion is called. If I log some data I log how that data changes over time. Those are powerful tools.
Re:Don't Look Down on Print Debugging by llm_nerd on Saturday November 23, 2024 @01:44PM (#42222802)
FWIW, many debuggers have facilities to do precisely this. The JetBrains debuggers allow you to set a breakpoint that -- in a non-stopping way -- simply logs every time it was passed, or logs whatever values you want it to log as an expression. So in one potentially non-stopping run you get an output of all of it.