Function std::breakpoint#
Function Documentation#
-
void std::breakpoint() noexcept#
Unconditional breakpoint: attempts to temporarily halt the execution of the program and transfer control to the debugger whether or not it’s not possible to determine if the debugger is present. Formally, the behaviour of this function is completely implementation-defined.
Note
The intent of this function is allowing for runtime control of breakpoints beyond what might be available from a debugger while not causing the program to exit. For example, breaking when an infrequent non-critical condition is detected, allowing programmatic control with complex runtime sensitive conditions, breaking on user input to inspect context in interactive programs without needing to switch to the debugger application, etc.