qxLib
Functions
asserts_manager.inl File Reference

Go to the source code of this file.

Functions

bool qx::is_debugger_present () noexcept
 Check whether the current process or thread is being traced by a debugger. More...
 

Detailed Description

Author
Khrapov
Date
27.12.2025

Definition in file asserts_manager.inl.

Function Documentation

◆ is_debugger_present()

bool qx::is_debugger_present ( )
inlinenoexcept

Check whether the current process or thread is being traced by a debugger.

Detection is supported on Windows, Linux and debug-info builds on macOS. Linux uses procfs; a non-debugger tracer also counts. An unavailable query or unsupported platform returns false.

Returns
- true when tracing is detected, otherwise false

Definition at line 13 of file asserts_manager.inl.