Exceptions Tab

Using the Debugger's Exceptions tab, you can instruct the Debugger to handle exceptions generated in your code.

Exceptions List
All exceptions in your program, listed alphabetically by package name. An exception is set to either "break on uncaught," "break always," or "ignore." The default is "break on uncaught."

Command Buttons
Break on Uncaught--Changes the setting of the selected exception to "break on uncaught." When the exception is thrown, the debugger stops your program and treats it as if you had hit a breakpoint.

Break Always--Changes the setting of the selected exception to "break always". When the exception is thrown, the debugger stops your program and treats it as if you had hit a breakpoint even if you have recovery code in your program.

Ignore--Changes the setting of the selected exception to "ignore". The debugger does not cause a breakpoint when the exception is thrown.

Show Source--Shows the source code of the selected exception in the Source Editor.

Exception Text Field
Field that accepts the name of an exception you want to add to your code. For example, java.lang.ThreadDeath throws an exception when the thread terminates. Clicking the Add button adds the exception to your program.


See also:

Adding an Exception