9

For some reason my exceptions arent being thrown anymore in Visual Studio. I get the error in JSON on the response, but Visual Studio in debug mode no longer throws an error and stops Visual Studio at that error when it happens.

I have looked into posts like this:

Visual Studio not stopping on an exception being thrown

But I just want to reset where I was before, not enable exceptions one by one.

Community
  • 1
  • 1
Mike Flynn
  • 22,342
  • 54
  • 182
  • 341

3 Answers3

22

To reset the exceptions settings, go to Debug>Exceptions and click "Reset All."

You can also drill down and control what happens for different types of exceptions.

Visual Studio 2012 menu selection Visual Studio 2012 exceptions dialog

update

You mentioned that you are missing the User-Unhandled column. In that case, you may need to set this:

enter image description here

Community
  • 1
  • 1
Jay
  • 56,361
  • 10
  • 99
  • 123
  • I actually did this. Nothing happens and I dont have a User-unhandled column anymore. Thanks for the screenshot though. – Mike Flynn Jun 26 '13 at 04:08
  • I think I found it thanks! http://stackoverflow.com/questions/4560497/exception-window-in-vs-net-2010-is-missing-the-user-unhandled-column – Mike Flynn Jun 26 '13 at 04:09
  • thanks alot, have been thinking about fixing this for quite some time now. And now I finally did it! :) – JohanLarsson Jan 20 '16 at 10:22
  • UI looks different sins VS 2019(?) but it still more or less the same and still working. – H. Pauwelyn Aug 18 '21 at 08:08
4

Cntrl + Alt + E (Or Debug -> Exceptions)
Then select "Reset All", that will return the default exceptions on.

Yochai Timmer
  • 48,127
  • 24
  • 147
  • 185
1

I hit a problem where it wasn't stopping on an exception and resetting the exception settings worked for me. To expand on Jay's answer above, in VS 2019 that option to reset is in a slightly different place (arguably a step backward compared to how it was before, it's clearer there).

Go to debug -> windows -> exception settings

The reset button is now this icon here:

Reset Exception Settings

MIP1983
  • 1,354
  • 1
  • 15
  • 25