Windows Forms Designer debugging in NetCore

Senthil Kumaran Rajan 1 Reputation point
2021-05-07T13:24:56.917+00:00

We could not able to perform design time debugging in NetCore Windows Forms.

We have tried to perform debugging as like we perform for .NetFramework but our source code cannot be able to debug at design time. We have followed the below steps.

  1. Set the break point in our custom control constructor.
  2. Set the start up project as “devenv.exe”.
    94803-image.png
  3. On running the application it shows another VisualStudio instance where we will select the project that we need to debug.
  4. Then on opening the designer and adding the custom control from toolbox.

Expected result:
The Break point set at out custom control constructor should hit.

Observed result:
The break point hit properly in .Net Framework project. But not for Net core project.

Please let us know if we need to enable any other operations to debug for NET core project.

Note:
We have enabled preview feature for NetCore.

94793-image.png

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,892 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
1,000 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.