Is it possible to control Visual Studio exception handling from the debugged code itself?
        Posted  
        
            by mark
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by mark
        
        
        
        Published on 2010-04-26T14:10:53Z
        Indexed on 
            2010/04/26
            14:13 UTC
        
        
        Read the original article
        Hit count: 235
        
Dear ladies and sirs.
I am wondering if it is possible to control the Visual Studio exception handling options from the code itself. For instance, I would like to turn off stopping on FCE for a certain piece of code, that generates many FCE, however, I would like it to be active for all the other code. Is it possible to do it from code? Something like this:
visualStudio.DoNotStopOnFCE()
try
{
  // some code generating many FCE
}
catch {}
visualStudio.StopOnFCE()
Thanks.
© Stack Overflow or respective owner