I’m working within WinForms (.net 3.5), and have the following line of code:
HitTestResult result;
try
{
result = this.HitTest( e.X, e.Y, ChartElementType.DataPoint);
}
catch(Exception e)
{
//This happens, we don't care!
}
I have no control over whether HitTest throws an exception, but if it does, I absolutely do not care.
Is it possible to disable my IDE from halting at this SPECIFIC catch block? I understand I can disable the System.FormatException it may throw (from the Debug->Exceptions menu, but that’s kind of overkill.
Thanks!
You can use the DebbugerStepThrough attribute to skip over that line. From MSDN:
For example: