Exceptions are not thrown in Visual Studio

For some reason, my exceptions no longer occur in Visual Studio. I get an error in JSON in response, but Visual Studio in debug mode no longer throws an error and stops Visual Studio with this error when this happens.

I looked at the following messages:

Visual Studio does not stop when an exception is thrown

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

+8
source share
3 answers

In reset exception settings, go to "Debug"> "Exceptions" and click "Reset All".

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

Visual studio 2012 menu selectionVisual Studio 2012 exceptions dialog

Update

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

enter image description here

+20
source

Cntrl + Alt + E (or Debugging β†’ Exceptions )
Then select β€œ Reset All, ” which will return the default exceptions.

+3
source

I ran into a problem when it did not stop at the exception, and resetting the exception worked for me. To expand the Jay answer above, in VS 2019 this reset option is located in a slightly different place (perhaps a step back compared to what it was before, it is more understandable).

Go to debugging -> Windows -> exception settings

The reset button is now this icon here:

Reset Exception Settings

0
source

Source: https://habr.com/ru/post/948110/


All Articles