[debugging.utility] (original) (raw)
Default behavior: implementation-defined.
[Note 2:
It is intended that, using an immediate (uncached) query to determine if the program is being traced by a debugger, an implementation returns trueonly when tracing the execution of the program with a debugger.
On Windows or equivalent systems, this can be achieved by calling the::IsDebuggerPresent() Win32 function.
For systems compatible with ISO/IEC 23360:2021, this can be achieved by checking for a tracing process, with a best-effort determination that such a tracing process is a debugger.
— _end note_]