The method I work with is called tens of thousands of times, which have started throwing exceptions lately. In most debugging cases, I set a breakpoint at the top of this method and would skip until I get to the call that interests me, with a parameter that throws an exception. In this case, this would be impractical, so I tried to set a breakpoint with a condition that would only break when this parameter value appears. I created a breakpoint at the position below and gave it a condition str == "OffendingValue".
class Foo
{
void Bar(string str)
{
try
{
...
}
catch (Exception ex)
{
...
}
}
}
, , Visual Studio . , . Visual Studio - , , 15 , . , . , . - Break All, , , , , , , .
- Visual Studio? Hit Count .