Skip to content
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

Visual Studio Debugger error dialog: "To prevent an unsafe abort when evaluating the function *.__DebugDisplay" all threads where allowed to run. #18305

Open
smoothdeveloper opened this issue Feb 10, 2025 · 3 comments
Labels
Area-Debug stepping, debug points, stacks and more Bug Impact-High (Internal MS Team use only) Describes an issue with extreme impact on existing code.
Milestone

Comments

@smoothdeveloper
Copy link
Contributor

Lately, while. debugging C# code where I have instances of a F# DU, I hit this error dialog:

Image

To prevent an unsafe abort when evaluating the function '*.__.DebugDisplay' all threads were allowed to run. This may have changed the state of the process and any breakpoints encountered have been skipped.

Wondering if anyone has seen this?

Microsoft Visual Studio Community 2022 (64-bit) - Preview
Version 17.13.0 Preview 2.1

@T-Gro
Copy link
Member

T-Gro commented Feb 10, 2025

I haven't seen it yet, could you please share the F# DU ?

It might have a broken codegen for it's debugging helpers.

@smoothdeveloper
Copy link
Contributor Author

type ErrorEntry =
  | VisibleError of gridRowIndex: int * gridColumnIndex: int * isError: bool
  | InvisibleError of dataRowIndex: int * dataColumnIndex: int * isError: bool

@smoothdeveloper
Copy link
Contributor Author

In case it matters, this is while debugging in winforms app.

@0101 0101 added Area-Debug stepping, debug points, stacks and more Impact-High (Internal MS Team use only) Describes an issue with extreme impact on existing code. and removed Needs-Triage labels Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Debug stepping, debug points, stacks and more Bug Impact-High (Internal MS Team use only) Describes an issue with extreme impact on existing code.
Projects
Status: New
Development

No branches or pull requests

3 participants