Skip to content

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

Open

Description

@smoothdeveloper

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

Activity

  1. added this to the Backlog milestone on Feb 10, 2025
  2. T-Gro commented on Feb 10, 2025

    @T-Gro
    Member

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

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

  3. smoothdeveloper commented on Feb 10, 2025

    @smoothdeveloper
    ContributorAuthor
    type ErrorEntry =
      | VisibleError of gridRowIndex: int * gridColumnIndex: int * isError: bool
      | InvisibleError of dataRowIndex: int * dataColumnIndex: int * isError: bool
  4. smoothdeveloper commented on Feb 10, 2025

    @smoothdeveloper
    ContributorAuthor

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

  5. added
    Area-Debug
    Impact-High
    and removed on Feb 10, 2025
  6. MuhammadAli0201 commented on Mar 10, 2025

    @MuhammadAli0201

    i am still facing the same issue. I'm working in .net core web apis with linq2db.

  7. modified the milestones: Backlog, March 2025 on Mar 11, 2025
  8. majocha commented on Mar 11, 2025

    @majocha
    Contributor

    I just saw this while debugging a simple F# 9 console app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Area-DebugBugImpact-High

Type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions