Reputation: 7944
So...
I've recently switched to .NET4.0 and I'm using VS2010 to develop in.
My scenario is that I have an MVVM WPF application and VS2010 is now pausing and catching the Exceptions being thrown by properties on the VMs when the binding has the ValidateOnExceptions="True" (i.e. I want to throw those Exceptions and they will result in the Validation status changing on the View).
It's really annoying and disruptive to my dev process.
Is there any way to prevent it from doing it?
Upvotes: 1
Views: 126
Reputation: 5132
From the menu Debug -> Exceptions .. you can choose to break when an exception is thrown, regardless of whether or not it is handled, by checking the Thrown check-box. Check the User-unhandled to only have the debugger break if that exception is not caught in your code. You can use the Find.. button to search for specific exceptions that are giving you problems. You can use the Add.. button to add any exceptions that you have created, but you need the full namespace of your custom exceptions in order for them to be recognized properly.
Upvotes: 0
Reputation: 37950
The menu item "Debug" -> "Exceptions" will let you choose which exceptions that should cause the debugger to break.
Upvotes: 2