pub fn break_if_attached()
Expand description

If a debugger is attached, breakpoint here.

Platforms

PlatformStateNotes
WindowsOK
AndroidOK
LinuxOKSee state() for known bugs, signal type might be wrong/suboptimal for debuggers.
FreeBSD???Untested, signal type might be wrong/suboptimal for debuggers
NetBSD???Untested, signal type might be wrong/suboptimal for debuggers
OS X???Untested, signal type might be wrong/suboptimal for debuggers
iOS???Untested, signal type might be wrong/suboptimal for debuggers
WASMOK

Examples

use bugsalot::debugger;

debugger::break_if_attached();