Mike Flynn
Mike Flynn

Reputation: 24325

Exceptions Not Being Thrown In Visual Studio

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.

Upvotes: 9

Views: 10803

Answers (3)

MIP1983
MIP1983

Reputation: 1374

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

Upvotes: 3

Jay
Jay

Reputation: 57979

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

Upvotes: 22

Yochai Timmer
Yochai Timmer

Reputation: 49271

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

Upvotes: 4

Related Questions