Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio not breaking on user-unhandled exceptions

When running my app in Visual Studio, it's ending on unhandled exceptions rather than showing a message box with the exception info and continuing on as I'm accustomed to.

What options do I need to change to get it back to the behavior I'm used to?

Edit: In Debug/Exceptions I do have the User-unhandled option selected for CLR Exceptions.

like image 650
BVernon Avatar asked Jun 06 '13 19:06

BVernon


People also ask

How do I fix unhandled exception in Visual Studio?

To change this setting for a particular exception, select the exception, right-click to show the shortcut menu, and select Continue When Unhandled in User Code. You may also change the setting for an entire category of exceptions, such as the entire Common Language Runtime exceptions).

How do I reset Visual Studio exceptions?

To set Visual Studio debugger options, select Tools > Options, and under Debugging select or deselect the boxes next to the General options. You can restore all default settings with Tools > Import and Export Settings > Reset all settings.

How do I stop Visual Studio from breaking on exception?

To turn off stop on exceptions press " Ctrl + Alt + E ". This will open the Exceptions window . Untick "Common Language Runtime Exceptions - Thrown". That would prevent it from pausing from within the delegate, but not when it's rethrown on Wait .


1 Answers

For visual studio 2015 :

1.Open Exception settings window (it's new in 2015) open Exception settings window (it's new in 2015)

2.Check All CLR Exceptions enter image description here

3.If you don't need visual studio to throw specific exceptions uncheck this enter image description here

like image 179
Rabolf Avatar answered Sep 19 '22 15:09

Rabolf