Description
-
.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.
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:
- Open the solution using
start-vs
. - Choose WinformsControlsTest as the current project on the toolbar.
- Click Run or press F5.