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.
In the Breakpoints view, click the Add Java Exception Breakpoint button or use the equivalent menu item in the context or Run menu. The Add Java Exception Breakpoint page opens.
Either type the name of the exception you want to catch or select it from the list.
At the bottom of the page, use the check boxes to specify how you want execution to suspend at locations where the exception is thrown.
Note: Exception breakpoints can be enabled and disabled and have hit counts set like a regular breakpoint.
Java development tools (JDT)
Breakpoints
Suspending threads
Adding breakpoints
Removing breakpoints
Enabling and disabling breakpoints
Setting method breakpoints