-
Notifications
You must be signed in to change notification settings - Fork 789
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
Debugger should not break on f# (F sharp) exception in async blocks #5539
Comments
I think this can be safely attributed to the host of different debugging issues with CE, especially async. But it's good to have it tracked. |
Notes
|
The other option is to inline move async/control code to become user code, specifically inlining
from async.fs. This would need an FSharp.Core update and a new entry point for unprotected, non-hijacked invocation of an async (effectively making the "Invoke" function on an async public via a backdoor). In the big picture that would be ok I think. |
The following code causes the debugger to break when the exception is thrown. Clearly the exception is handled and so the debugger should not break.
If I continue execution the program continues to run normally; printing "oops" on the screen as expected.
Compare this with the equivalent C# code. This does not break when the exception is thrown. The F# version should behave the same way and not break!
This issue has been moved from https://developercommunity.visualstudio.com/content/problem/314461/debugger-should-not-break-on-f-f-sharp-exception-i.html
VSTS ticketId: 666263
These are the original issue comments:
(no comments)
These are the original issue solutions:
(no solutions)
The text was updated successfully, but these errors were encountered: