Skip to content

Windows Forms Designer debugging in NetCore #4878

@SenthilKumaranRajan

Description

@SenthilKumaranRajan

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

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

  1. Set the breakpoint in our custom control constructor.
  2. Set the start-up project as “devenv.exe”.

image

  1. On running the application it shows another VisualStudio instance where we will select the project that we need to debug.
  2. Then on opening the designer and adding the custom control from the toolbox.

Expected result:
The Breakpoint set at our custom control constructor should hit.

Observed result:
The breakpoint hit properly in the .Net Framework project. But not for the Net core project.

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

Note:
We have enabled the preview feature for NetCore.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions