qxLib
Classes | Macros | Functions
asserts_manager.h File Reference
#include <qx/algo/predicates.h>
#include <qx/asserts/assert_compare.h>
#include <qx/asserts/error_context_stream.h>
#include <qx/containers/string/format_string.h>
#include <qx/logger/logger.h>
#include <qx/macros/details/macro_user_message.h>
#include <qx/windows.h>
#include <shared_mutex>
#include <vector>
#include <qx/asserts/asserts_manager.inl>

Go to the source code of this file.

Classes

class  qx::asserts_manager
 Determines assertions behavior. More...
 
struct  qx::asserts_manager::config
 
struct  qx::asserts_manager::interceptor_entry
 
struct  QX_FMT_NS::formatter< qx::assert_type, char_t >
 

Macros

#define QX_DEBUG_BREAK()   QX_DETAILS_DEBUG_BREAK()
 Interrupt execution for a debugger using the platform's debug trap.
 

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.h.

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.