Hello,
To break on unhandled exceptions check "Common Language Runtime Exceptions" as per below. If that does not help let me know.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
This issue specifically applies to .NET languages and probably /clr code.
For a while Visual Studio has not been breaking when an exception occurs on a seemingly inconsistent basis unless I am specifically stepping through method where the exception occurs. Instead it just breaks at Application.Run() in the static main method in Program code. I am not sure if this "feature" was changed with upgrade to 2019 or with 2017 but I am REALLY REALLY sick of it. I usually have to pinpoint the method where the error is occurring in order to get it to break so that I can see what is happening. I have tried to search online for a solution but can only find questions and solutions relating to breaking ALWAYS (including caught exceptions). Here is what I want: I want Visual Studio to break IMMEDIATELY on ALL UN-caught exceptions; regardless of where they are (methods and properties). Frankly I don't understand why this isn't the default setting. How do I do this?
EDIT: ALSO... how do I request this be the default setting? I have had to restart a time consuming application over SIX TIMES to figure out where this error is occurring just so I can figure out why.
Hello,
To break on unhandled exceptions check "Common Language Runtime Exceptions" as per below. If that does not help let me know.