Skip to content

Commit 4a74b2c

Browse files
author
David Karlaš
committed
Bug 42034 - Cannot inspect full string value (XS always shows truncated value)
1 parent 2321ca1 commit 4a74b2c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Mono.Debugging/Mono.Debugging.Evaluation/EnumerableElementGroup.cs

+4-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void Fetch (int maxIndex)
6767
var val = valCurrent.Value;
6868
values.Add (val);
6969
if (val != null) {
70-
elements.Add (ctx.Adapter.CreateObjectValue (ctx, this, new ObjectPath ("[" + currentIndex + "]"), val, ObjectValueFlags.ReadOnly));
70+
elements.Add (ctx.Adapter.CreateObjectValue (ctx, valCurrent, new ObjectPath ("[" + currentIndex + "]"), val, ObjectValueFlags.ReadOnly));
7171
} else {
7272
elements.Add (Mono.Debugging.Client.ObjectValue.CreateNullObject (this, "[" + currentIndex + "]", ctx.Adapter.GetDisplayTypeName (ctx.Adapter.GetTypeName (ctx, valCurrent.Type)), ObjectValueFlags.ReadOnly));
7373
}
@@ -114,7 +114,9 @@ public ObjectValue GetValue (ObjectPath path, EvaluationOptions options)
114114
{
115115
int idx;
116116
if (int.TryParse (path.LastName.Replace ("[", "").Replace ("]", ""), out idx)) {
117-
return elements [idx];
117+
var element = elements [idx];
118+
element.Refresh (options);
119+
return element;
118120
}
119121
return null;
120122
}

0 commit comments

Comments
 (0)