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?
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.
Of course, a debugger that could generate a log like that instead of pausing execution would give you that benefit too.