Visual Studio not breaking on user-unhandled exceptions
For visual studio 2015 :
1.Open Exception settings window (it's new in 2015)
2.Check All CLR Exceptions
3.If you don't need visual studio to throw specific exceptions uncheck this
Debug->Exceptions->Check Thrown/User-Unhandled
for Common Language Runtime Exceptions
edit: Maybe try to do a clean/rebuild, and run again? Maybe debug symbols are corrupt or something..
Depending on the application, the following options may help you:
Tools → Options... → Debugging → General
- Break when exceptions cross AppDomain or managed/native boundaries (Managed only)
- Enable the exception assistant
- Unwind the call stack on unhandled exceptions
[Note: Based on comments below, the following tip did not work and, for some, created the problem answer was intended to solve: use with caution...]
- Uncheck Enable Just My Code ← JMC can prevent you from catching exceptions in code that's not yours and/or is missing symbols.
In my case, when I went to Debug -> Exceptions, the User-unhandled column was missing. Going to Debug -> Options and Settings and enabling Enable Just My Code fixed this, which consequently fixed this problem altogether.
This fixed it for me: in the quick lauch (Ctrl-Q) type "ResetToC#" (or ResetTo something else)
I had the same problem for a long time. In the Debug->Exceptions menu, the "User-unhandled" column was missing! Extremely annoying.
I uninstalled all my plugins, did a reinstall of VS, but nothing worked (Visual Studio probably left some settings on my machine that it reused after reinstalling).
This might not seem like the best solution as there must be some setting somewhere that would have done it as well. I couldn't find it and after not being able to break on user-unhandled exceptions for months, the ResetToC# option was a relief.