Debugging and Exception Handling
Suppose you have the following code: 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. … Read more