Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/debugger-libs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Karlaš <david.karlas@xamarin.com>2016-06-23 16:46:47 +0300
committerDavid Karlaš <david.karlas@xamarin.com>2016-06-23 16:47:10 +0300
commit4a74b2cc980df13e5c4076266e66d305ada41cb3 (patch)
treed402623e5fa5b3b620c607c711450e94aa0206ff
parent2321ca102634be83b058de84b2b4433ac6fd8289 (diff)
Bug 42034 - Cannot inspect full string value (XS always shows truncated value)cycle8
-rw-r--r--Mono.Debugging/Mono.Debugging.Evaluation/EnumerableElementGroup.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/Mono.Debugging/Mono.Debugging.Evaluation/EnumerableElementGroup.cs b/Mono.Debugging/Mono.Debugging.Evaluation/EnumerableElementGroup.cs
index 1704154..4d525e7 100644
--- a/Mono.Debugging/Mono.Debugging.Evaluation/EnumerableElementGroup.cs
+++ b/Mono.Debugging/Mono.Debugging.Evaluation/EnumerableElementGroup.cs
@@ -67,7 +67,7 @@ namespace Mono.Debugging.Evaluation
var val = valCurrent.Value;
values.Add (val);
if (val != null) {
- elements.Add (ctx.Adapter.CreateObjectValue (ctx, this, new ObjectPath ("[" + currentIndex + "]"), val, ObjectValueFlags.ReadOnly));
+ elements.Add (ctx.Adapter.CreateObjectValue (ctx, valCurrent, new ObjectPath ("[" + currentIndex + "]"), val, ObjectValueFlags.ReadOnly));
} else {
elements.Add (Mono.Debugging.Client.ObjectValue.CreateNullObject (this, "[" + currentIndex + "]", ctx.Adapter.GetDisplayTypeName (ctx.Adapter.GetTypeName (ctx, valCurrent.Type)), ObjectValueFlags.ReadOnly));
}
@@ -114,7 +114,9 @@ namespace Mono.Debugging.Evaluation
{
int idx;
if (int.TryParse (path.LastName.Replace ("[", "").Replace ("]", ""), out idx)) {
- return elements [idx];
+ var element = elements [idx];
+ element.Refresh (options);
+ return element;
}
return null;
}