Hacker News new | ask | show | jobs
by pjc50 1882 days ago
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?
2 comments

In gdb you can put commands to be executed on a breakpoint; you can put necessary prints + continue statement there.
This is possible in all JetBrains IDEs, just right-click the breakpoint and configure it that way.