Debug Exception-Handling Code

You can debug C++ exception-handling code that you wrote.

To debug exception-handling code that you wrote (code inside a C++ catch block), follow these steps:

  1. Start your program under debug control and turn on signal handling for user-defined exceptions.
  2. Run your program. When a user-defined exception occurs, execution stops and a floating pane opens showing the process log, with the type of exception thrown as the last object in the process log.
  3. Issue a Step Exception command. This causes the code leading up to your exception handler to be executed.
  4. Issue a Debug Step Into command. Execution stops in the first source code statement for the catch block that caught the exception. You can now debug your exception-handling code.


Handle Signals for User-Defined Exceptions
Determine Causes of System Exceptions