Can I enable/disable breaking on Exceptions programatically?

Posted by Tony Lambert on Stack Overflow See other posts from Stack Overflow or by Tony Lambert
Published on 2010-04-29T14:29:08Z Indexed on 2010/04/29 14:37 UTC
Read the original article Hit count: 390

Filed under:
|
|
|

I want to be able to break on Exceptions when debugging... like in Visual Studio 2008's Menu Debug/Exception Dialog, except my program has many valid exceptions before I get to the bit I wish to debug.

So instead of manually enabling and disabling it using the dialog every time is it possible to do it automatically with a #pragma or some other method so it only happens in a specific piece of code?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET