Skip to content

[wasm][debugger] RootHidden is not working correctly in DebuggerTypeProxy #76876

@thaystg

Description

@thaystg
var list = new List<string>();
var a = "test";
list.Add(a);

On wasm:
image
In a console app:
image

Items is DebuggerRootHidden, so I think it should not show.

When fixed, remove else block from:

else
{
// a collection - expose elements to be of array scheme
var memberNamedItems = members
.Where(m => m["name"]?.Value<string>() == "Items" || m["name"]?.Value<string>() == "_items")
.FirstOrDefault();
if (memberNamedItems is not null &&
(DotnetObjectId.TryParse(memberNamedItems["value"]?["objectId"]?.Value<string>(), out DotnetObjectId itemsObjectId)) &&
itemsObjectId.Scheme == "array")
{
rootObjectId = itemsObjectId;
}
}

Metadata

Metadata

Assignees

Labels

arch-wasmWebAssembly architecturearea-Debugger-monoenhancementProduct code improvement that does NOT require public API changes/additions

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions