News for hackers. Stuff that matters.
Re:Debug Programs by Modifying Them by wtetzner on Tuesday April 27, 2021 @04:44PM (#26961246)
Stepping through can be a pain sometimes, because to find certain bugs it's easier to look through a log throughout a longer run of the program, and see how the state changes.

Of course, a debugger that could generate a log like that instead of pausing execution would give you that benefit too.

Re:Debug Programs by Modifying Them by pjc50 on Wednesday April 28, 2021 @04:58AM (#26967248)
Yes, this seems like an odd missing feature that would give me the best of both worlds: a "watchpoint", but that outputs to a log. It may be possible in VS debug or gdb but it's not really .. surfaced?
Re:Debug Programs by Modifying Them by dezgeg on Wednesday April 28, 2021 @07:02AM (#26967964)
In gdb you can put commands to be executed on a breakpoint; you can put necessary prints + continue statement there.
Re:Debug Programs by Modifying Them by searedsteak on Wednesday April 28, 2021 @06:42AM (#26967858)
This is possible in all JetBrains IDEs, just right-click the breakpoint and configure it that way.