diff --git a/src/AddIns/Debugger/Debugger.AddIn/Visualizers/GraphVisualizer/ObjectGraph/ObjectGraphBuilder.cs b/src/AddIns/Debugger/Debugger.AddIn/Visualizers/GraphVisualizer/ObjectGraph/ObjectGraphBuilder.cs index 32651a4884..a43512c486 100644 --- a/src/AddIns/Debugger/Debugger.AddIn/Visualizers/GraphVisualizer/ObjectGraph/ObjectGraphBuilder.cs +++ b/src/AddIns/Debugger/Debugger.AddIn/Visualizers/GraphVisualizer/ObjectGraph/ObjectGraphBuilder.cs @@ -190,7 +190,9 @@ namespace Debugger.AddIn.Visualizers.Graph LoadNodeObjectContent(baseClassNode, expression, baseType); } - var members = type.GetFieldsAndNonIndexedProperties(GetMemberOptions.IgnoreInheritedMembers).Where(m => !m.IsStatic).ToList(); + var members = type.GetFieldsAndNonIndexedProperties(GetMemberOptions.IgnoreInheritedMembers). + Where(m => !m.IsStatic && !m.IsSynthetic && !m.Name.EndsWith(">k__BackingField")). + ToList(); // non-public members var nonPublicProperties = createProperties(expression, members.Where(m => !m.IsPublic)); if (nonPublicProperties.Count > 0) { diff --git a/src/AddIns/Debugger/Debugger.AddIn/Visualizers/GraphVisualizer/ObjectGraphControl.xaml.cs b/src/AddIns/Debugger/Debugger.AddIn/Visualizers/GraphVisualizer/ObjectGraphControl.xaml.cs index 67e8241dd2..b07f98d484 100644 --- a/src/AddIns/Debugger/Debugger.AddIn/Visualizers/GraphVisualizer/ObjectGraphControl.xaml.cs +++ b/src/AddIns/Debugger/Debugger.AddIn/Visualizers/GraphVisualizer/ObjectGraphControl.xaml.cs @@ -107,7 +107,8 @@ namespace Debugger.AddIn.Visualizers.Graph RefreshView(); return; } - if (shownExpression == null || value.Expr != shownExpression.Expr) { + if (shownExpression == null || shownExpression.Expr != value.Expr) { + shownExpression = value; txtExpression.Text = value.Expr; RefreshView(); } diff --git a/src/AddIns/Debugger/Debugger.AddIn/Visualizers/Utils/DebuggerHelpers.cs b/src/AddIns/Debugger/Debugger.AddIn/Visualizers/Utils/DebuggerHelpers.cs index 43b1c3f072..b6d2fb9796 100644 --- a/src/AddIns/Debugger/Debugger.AddIn/Visualizers/Utils/DebuggerHelpers.cs +++ b/src/AddIns/Debugger/Debugger.AddIn/Visualizers/Utils/DebuggerHelpers.cs @@ -93,7 +93,7 @@ namespace Debugger.AddIn.Visualizers.Utils value.Type.GetDefinition().Compilation.FindType( typeof(System.Runtime.CompilerServices.RuntimeHelpers) ).GetDefinition(); - hashCodeMethod = runtimeHelpers.GetMethods(m => m.FullName == "GetHashCode").FirstOrDefault(); + hashCodeMethod = runtimeHelpers.GetMethods(m => m.Name == "GetHashCode" && m.Parameters.Count == 1).FirstOrDefault(); if (hashCodeMethod == null) { throw new DebuggerException( "Cannot find method System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode().");