Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/MIDebugEngine/Engine.Impl/Variables.cs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ private VariableInformation(TupleValue results, VariableInformation parent, stri

int index;

if (!results.Contains("value") && (Name == TypeName || Name.Contains("::")))
if (name == null && !results.Contains("value") && (Name == TypeName || Name.Contains("::")))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you will want to move the name null check with Name.Contains("::") since thats where the issue is but we still want the Name == TypeName check run. The issue is the enum Name contains ::.

Suggested change
if (name == null && !results.Contains("value") && (Name == TypeName || Name.Contains("::")))
if (!results.Contains("value") && (Name == TypeName || (Name.Contains("::") && name == null)))

{
// base classes show up with no value and exp==type
// (sometimes underlying debugger does not follow this convention, when using typedefs in templated types so look for "::" in the field name too)
Expand Down
Loading