Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
How are Polly users dealing with Visual Studio wanting to break on exceptions? #185
Since Polly is handling the retry logic for a given bit of user supplied code it would be nice to avoid the the Visual Studio debugger from breaking on exceptions that occur but then are caught in this code. I believe used to use the
@jpierson Are you experiencing the debugger only breaking on the final failed try (when all retries have failed), or on each-and-every try?
In my environment, with VisualStudio 2015 Update 3, and “JustMyCode” enabled:
If your VStudio experience is less good than that, let’s investigate why.
@jpierson Assuming it’s only the rethrow of the final failed attempt that’s causing the debugger to break, you might consider using Polly’s
@jpierson / anyone: Any idea whether Microsoft changed this behaviour for Visual Studio 2017? (The fact discussed here under How to Suppress Ignorable Exceptions with DebuggerNonUserCode that a performance improvement in VS2015 led to exceptions in sections marked [DebuggerNonUserCode] still breaking, ignoring the [DebuggerNonUserCode] attribute.)