Special Event Breakpoints | Breakpoints Window |
Breakpoint Types |
You can set an On Exception breakpoint to stop program execution when a C++ throw statement is executed.
Exceptions signal programming anomalies, such as division by zero or array overflow. To deal with these exceptions, you can set up try blocks to catch exceptions that have been raised by throw expressions defined earlier in the code.
You can use an On Exception breakpoint to:
If you step after stopping at a throw point, control is returned at the start of the first destructor that is executed during stack unwinding. If you step out of a destructor control is returned at the start of the next destructor. When all the destructors have been executed, stepping brings you to the catch block handling the throw.
To set an On Exception breakpoint: