Export (0) Print
Expand All

Exceptions Dialog Box

Visual Studio .NET 2003

The Exceptions dialog box enables you to change the way the debugger handles exceptions or categories of exceptions. From the Debug menu, choose Exceptions.

Exceptions
This box contains a number of tree controls. Each tree represents a category of exceptions, such as Native Runtime Errors or Common Language Runtime Exceptions. If you expand a category, you will see the names of individual exceptions or subcategories of exceptions. You can click any exception or category to select it, then change its handling using the radio buttons in the When the exception is thrown and If the exception is not handled groups. The node icon for each exception or category name indicates the current setting for When the exception is thrown.
When the exception is thrown
Select a radio button from this group to change how the debugger handles the exception immediately after it is thrown and before the program you are debugging has a chance to handle it. The option you choose here affects the exception that you have highlighted in the Exceptions box. If you have selected a category in the Exceptions box, the option you chose in the When the exception is thrown group affects all the exceptions in that category.
  • Break into debugger

    This option causes the debugger to break execution of your program so that you can examine the situation and handle the exception yourself. When this option is selected, the icon next to the exception or category name looks like a large red ball with an "X" on it.

  • Continue

    This option allows execution to continue. When this option is selected, the icon next to the exception or category name looks like a large gray ball.

  • Use parent setting

    This option causes a specific exception to use the setting you chose for the parent node, which may be Break into debugger or Continue. When this option is selected, the icon next to the exception or category name looks like a small gray ball.

If the exception is not handled
Select a radio button from this group to change how the debugger handles the exception on the second try, which is after the program you are debugging has tried to handle it and failed. The option you choose here affects the exception you chose in the Exceptions box. If you have selected a category in the Exceptions box, the option you choose in the If the exception is not handled group affects all the exceptions in that category.
  • Break into debugger

    This option causes the debugger to break execution of your program and so that you can examine the situation and handle the exception yourself.

  • Continue

    This option allows execution to continue.

  • Use parent setting

    This option causes a specific exception to use the setting you chose for the parent node, which is Break into debugger or Continue.

Find
Select this button to open the Find Exception dialog box, which you can use to search for an exception name in the Exceptions box (in the Exceptions dialog box). This saves you from having to open each individual tree to find the exception name you are looking for. For more information, see Find Exception Dialog Box.
Find Next
Select this button to find another exception with the same name, after you have found the first occurrence with the Find button.
Clear All
Select this button to delete all user-added exceptions.
Add
Select this button to add a new exception to a selected category. For more information, see Adding New Exceptions.
Delete
Select this button to delete a user-added exception.

See Also

Microsoft Visual Studio Debugger (Exception Thrown) Dialog Box | Handling Exceptions | Visual J# Exceptions with .NET Framework Equivalents

Show:
© 2014 Microsoft