Share via


Handling an Exception (Windows Embedded CE 6.0)

1/5/2010

You can manage and handle exceptions based on their type.

In Microsoft Visual Studio 2005 there are options for how to handle an exception. You must have a project loaded to see the Debug menu.

You may handle exceptions with the following procedures.

To handle an exception

  1. Examine the results on the Output tab of the Output window.

    The results in the Output window indicate where the exception occurred.

  2. From the Debug menu, choose Windows and then choose Call Stack. Double-click any line to display the source code corresponding to that frame.

  3. From the Debug menu, choose Windows and then choose Autos to view transient parts of the code, such as local variables (optional).

  4. To configure how exceptions are handled in the future, choose Exceptions… from the Debug menu.

To continue execution after an exception

  1. When there is an exception, you can click the Debug tab, select Start, and a window opens which asks you if you want to pass the exception on to the program being debugged.

  2. You can then choose Yes, No or Cancel.

See Also

Tasks

Viewing or Modifying the List of Exceptions

Other Resources

Exception Handling