Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio: What happened to the "Break when an exception is unhandled" option?

As far as I remember, Visual Studio (both 2008 and 2010) used to have an option to break either on thrown exceptions or on unhandled exceptions. Now when I bring up the Exceptions dialog (Ctr+Alt+E), it just offers to break when an exception is thrown:

enter image description here

I've tried resizing to the columns in that dialog, but that did not help. Is this a bug, or am I missing something?

like image 223
Adrian Grigore Avatar asked Apr 13 '10 16:04

Adrian Grigore


People also ask

What happens when an unhandled exception occurs?

An unhandled exception occurs when the application code does not properly handle exceptions. For example, When you try to open a file on disk, it is a common problem for the file to not exist. The . NET Framework will then throw a FileNotFoundException.

How do I get rid of unhandled exception in Visual Studio?

You can also add or delete exceptions. With a solution open in Visual Studio, use Debug > Windows > Exception Settings to open the Exception Settings window. Provide handlers that respond to the most important exceptions.

What is exception unhandled Visual Studio?

In Visual Studio, when exceptions are thrown or end up unhandled, the debugger can help you debug these by breaking just like it breaks when a breakpoint is hit. In this blog post we will look at the different classifications of exceptions and how to configure when the debugger will break for those exceptions.

Is an unhandled exception a crash?

A crash is when an exception in your code goes un-handled and terminates the process. These unhandled exceptions are also known as second chance exceptions.


1 Answers

This seems to indicate it can occur if you don't have "Enable Just My Code (Managed Only)" enabled.

Edit: just tried it here (VS 2008) and I can verify that disabling that option will cause the User-Unhandled column to disappear. You can find the option here: Tools -> Options -> Debugging -> General

like image 89
mmacaulay Avatar answered Oct 14 '22 21:10

mmacaulay