Skip to content

Mono WASM debugger displays private members of base class alongside other properties #43184

@captainsafia

Description

@captainsafia

Description

When debugging a Blazor WASM application on .NET 5 RC2, I noticed that the debugger populates the locals inspector with private properties from the ComponentBase base class.

Screen Shot 2020-10-08 at 12 12 11 PM

The extraneous values displayed are private book-keeping properties used by Blazor's base component class (ref). The class is defined as a public abstract class.

Configuration

  • .NET 5 RC 2 (5.0.0-rc.2.20475.17)
  • Windows 10
  • Visual Studio 16.8 Preview 3

Regression?

This looks like a regression from 3.2. Setting a breakpoint at the same point in a 3.2 app does not surface the issue.

Screen Shot 2020-10-08 at 12 13 40 PM

Other information

  1. Install the above version of the SDK.
  2. Create a new Blazor WASM project with .NET 5 in VS's project creation view.
  3. Click F5.
  4. Set a breakpoint in the IncrementCount method in the Counter.razor page and observe the issue.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions