Permalink
Browse files

[Debugger] Return HasChildren in more cases.

  • Loading branch information...
1 parent e7f23fe commit 3a6448e1b4712b9bb98466fb387320cb9409eab7 @jstedfast jstedfast committed Jul 31, 2012
Showing with 16 additions and 2 deletions.
  1. +16 −2 main/src/core/Mono.Debugging/Mono.Debugging.Evaluation/ObjectValueAdaptor.cs
@@ -451,12 +451,26 @@ public virtual bool ObjectValueHasChildren (EvaluationContext ctx, IObjectSource
continue;
return true;
- }
- catch (Exception ex) {
+ } catch (Exception ex) {
ctx.WriteDebuggerError (ex);
}
}
+ if (IsArray (ctx, proxy))
+ return true;
+
+ if (ctx.Options.GroupStaticMembers && HasMembers (ctx, type, proxy, BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic | flattenFlag))
+ return true;
+
+ if (groupPrivateMembers && HasMembers (ctx, type, proxy, BindingFlags.Instance | BindingFlags.NonPublic | flattenFlag | staticFlag))
+ return true;
+
+ if (!ctx.Options.FlattenHierarchy) {
+ object baseType = GetBaseType (ctx, type, false);
+ if (baseType != null)
+ return true;
+ }
+
return false;
}

0 comments on commit 3a6448e

Please sign in to comment.