Function std::is_debugger_present#
Function Documentation#
-
bool std::is_debugger_present() noexcept#
Attempts to determine if the program is being executed with the debugger present. Formally, the behaviour of this function is completely implementation-defined.
Note
The intent of this function is allowing printing out extra output to help diagnose problems, executing extra test code, displaying an extra user interface to help in debugging, etc.
- Returns:
True if, to the best knowledge, the program is executed under a debugger.