Skip to content

DebuggerDisplay attribute not working in WASM debugger #46859

Closed
@rogihee

Description

@rogihee

The DebuggerDisplay attribute is not working in the WASM debugger.

To Reproduce

Create a simple class with a debugger display attribute:

[DebuggerDisplay("Counter {" + nameof(Count) + "}")]
public class CounterModel
{
    public int Count {get; set; }
}

In the default template in the Counter example use this class instead of the int param. It should show "Counter 0" on startup, but displays the class name instead:
image

Further technical details

  • ASP.NET Core version 5.01
  • VS2019 16.8.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-wasmWebAssembly architecturearea-Debugger-monoin-prThere is an active PR which will close this issue when it is merged

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions