It is possible to suspend the execution of thread when an exception is thrown by specifying an exception. Execution can be suspended at locations where the exception is uncaught, caught, or both.
1. |
In the Breakpoints view, click the Add Java Exception button. |
2. |
In the Add Exception dialog, either type the name of the exception you would like to catch or select it from the list. ![]() |
3. |
In the checkboxes at the bottom of the dialog, specify either:
|
Note: Exception breakpoints can be enabled and disabled like a regular breakpoint.