std::breakpoint_if_debugging
Min standard notice:
Header: <debugging>
Conditional breakpoint: attempts to temporarily halt the execution of the program and transfer control to the debugger if it were able to determine that the debugger is present. Acts as a no-op otherwise.
# Declarations
void breakpoint_if_debugging() noexcept;
(since C++26)
# Notes
Feature-test macro Value Std Feature __cpp_lib_debugging 202311L (C++26) Debugging support library 202403L (C++26) Replaceable std::is_debugger_present
# Example
This section is incompleteReason: no example