michael boyko

Stepping over C++ exception not working as expected

Discussion created by michael boyko on Feb 24, 2020
Latest reply on Feb 26, 2020 by Kerry Zhou

When debugging code that throws an exception I am unable to step over the throw statement. Using any of the stepping actions (i.e. step into or step over) results in the same effect as just pressing resume. The code is executing correctly and program flow happens as I expect - I'm just not able to step over the throw statements! The only way I can get by is step another break point after the exception code and then continue to step.


Here is the code I used to test inside main() after the BOARD_ calls:


try {
throw std::runtime_error("test");
} catch (std::runtime_error &e) {
std::cout << e.what() << "\n";


Anyone else experiencing this? Any ideas what is wrong?