Visual Studio ignore try catch - debug only

Posted by Praesagus on Stack Overflow See other posts from Stack Overflow or by Praesagus
Published on 2010-03-11T17:54:23Z Indexed on 2010/03/11 18:04 UTC
Read the original article Hit count: 491

I think error handling is a good idea. :) When debugging it can get in the way - especially with nice user friendly messages. In VB6 I could just check a box for the compiler to ignore my error handling. I found the dialog that allows me to do something similar in VS, but it's about 10,000 check boxes instead of one - which is too many to change every time I want a production compilation.

Is there a way to set VS up so when I am in debugging mode I get one set of conditions and when I am in production I get another? ...or is there just another method to handling errors and debugging more efficiently?

Thanks

© Stack Overflow or respective owner

Related posts about visual-studio-2008

Related posts about ASP.NET