-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How are Polly users dealing with Visual Studio wanting to break on exceptions? #185
Comments
@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 |
Very interested to hear also any community suggestions around VStudio settings. ( @jpierson Have reviewed the SO questions you pointed to; not aware of any tricks better than suggested there ) |
@jpierson Did you find any better solutions on this? |
@reisenberger, unfortunately no. |
@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.) @jpierson Since Microsoft are actively engineering on VS2017 RC and seeking product feedback, could be a time to report it? - if the issue still applies. |
Closing due to lack of further comment/activity. Detailed wiki article now written giving guidance on how to best configure Visual Studio for debugging with Polly, including reference back to this issue. |
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
[DebuggerNonUserCode]
to achieve this in an older project for some custom retry code but it appears that due to changes in Visual Studio 2015 this will no longer work out of the box. What are other Polly users doing to avoid the annoying debugger interference without having to custom each developer's Visual Studio settings or making custom registry hacks?Related:
The text was updated successfully, but these errors were encountered: