Hacker News new | ask | show | jobs
by jepler 1028 days ago
In an old $DAY_JOB I used a variant of this as a way to make certain internal errors execute a breakpoint when debugged, and generate an error log if not debugged. iirc this did not happen until after an error had already occurred, so it was not very useful as anti-RE.
1 comments

I'm curious what the context is where you can't just set a breakpoint on the logging function.
It's possible there's no single logging function (maybe it's a macro). Or you only want some invocations of the logging function to stop.