I know I can control the way Visual Studio handles exceptions according to their type and to the fact that they're eventually caught using the "Exception" dialog.
However, I've got a library that's internally throwing (and catching) an ArgumentOutOfRange
exception when I'm calling a specific method. The exception is thrown (and caught by the library) maybe 1% of the time, but I'm calling this method a lot. The editor says it's by design (and indeed, the design they've chosen makes sense).
The thing is that I don't want Visual Studio to break each time the exception is thrown.
ArgumentOutOfRange
exceptions, as I may have some in my code and want to break on those.Is there a way to achieve this? I've been looking into attributes (such as DebuggerStepThrough
), but haven't find something adequate yet.
Any hints on how to do this ?