Skip to content

WinformsControlsTest cannot be run under debugger in Visual Studio #64568

Closed
@WPMGPRoSToTeMa

Description

@WPMGPRoSToTeMa
  • .NET Core Version:
    7.0.0-beta.22078.2

  • Have you experienced this same bug with .NET Framework?:
    No

Problem description:
WinformsControlsTest cannot be run under debugger using F5 in Visual Studio, the following error is shown:
A fatal error has occurred and debugging needs to be terminated. For more details, please see the Microsoft Help and Support web site. HRESULT=0x80070057. ErrorCode=0x0.
Fatal error when WinformsControlsTest runs under debugger in VS

It was found that this problem is caused by dotnet/winforms#6569 dotnet/winforms#6573.

WinformsControlsTest still can be run without debugger attached using Ctrl+F5. Debugging also doesn't work if attach the debugger later - breakpoints cannot be hit and there are no assemblies in Modules window.

Expected behavior:
It should be possible to run WinformsControlsTest with debugger attached in Visual Studio.

Minimal repro:

  1. Open the solution using start-vs.
  2. Choose WinformsControlsTest as the current project on the toolbar.
  3. Click Run or press F5.

Metadata

Metadata

Assignees

Labels

area-Diagnostics-coreclrblockingMarks issues that we want to fast track in order to unblock other important work

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions