I would exercise caution with the Linux version. It will work fine for processes under a debugger or processes that aren’t being ptraced at all. But for things that are being ptraced by something other than a debugger (like strace, or ltrace), it will abruptly kill that process.
This is great. I’ve often times struggled with breakpoints in hot functions, I didn’t even know about SIGTRAP.
I would exercise caution with the Linux version. It will work fine for processes under a debugger or processes that aren’t being ptraced at all. But for things that are being ptraced by something other than a debugger (like
strace
, orltrace
), it will abruptly kill that process.