Partager via


Microsoft Visual Studio Debugger (Exception Thrown) Dialog Box

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

An exception has occurred in your program. This dialog box reports the kind of exception thrown. Your code needs to handle this exception. You can choose between the following options for handling the exception:

Break
Allows execution to break into the debugger. The exception handler is not invoked prior to the break. If you continue from the break, the exception handler will be invoked.

Continue
Allows execution to continue, giving the exception handler a chance to handle the exception. This option is not available for certain types of exceptions. Continue will allow the application to continue. In a native application, it will cause the exception to be rethrown. In a managed application, it will either cause the program to terminate or the exception to be handled by a hosting application.

Note

You cannot continue after an unhandled exception in managed code. Choosing Continue after an unhandled exception in managed code causes debugging to stop.

Ignore
Allows execution to continue without invoking the exception handler. Because the exception handler is not invoked, this can lead to further consequences, including additional exceptions and errors. This option is not available for certain types of exceptions.

See Also

Managing Exceptions with the Debugger
Best Practices for Exceptions
Exception Handling