Any way to not break on certain errors in Visual Studio 2010?
Posted
by Vulgrin
on Stack Overflow
See other posts from Stack Overflow
or by Vulgrin
Published on 2010-05-20T16:58:53Z
Indexed on
2010/05/20
17:00 UTC
Read the original article
Hit count: 152
I'm working on a VS2010 project where I'm using DataAnnotations on my objects to handle validation. However, this is sort of a pain in the butt while trying to do interactive debugging because it keeps pausing VS.Net on validation errors.
Obviously, I want to break on some errors, but not these particular types. Am I out of luck and I just need to turn on and off my Break on All Errors setting? Or is there some way to tell VS to just ignore these when they happen? (these are errors generated via Validator.ValidateProperty calls.)
Thanks
© Stack Overflow or respective owner