Suppose you have the following code:
1 2 3 4 5 6 7 8 9 |
void foo() { throw std::runtime_error("a foo exception!"); } int main() { foo(); } |
When running the program, the following window is popped up: When running it in the debugger, a different window is popped up: and the debugger takes you to the line of code that threw the exception. Looking into the output window, you can see something like this: First-chance…