Index: runtime/vm/debugger.cc |
diff --git a/runtime/vm/debugger.cc b/runtime/vm/debugger.cc |
index b1783fa85f19d5776f9cf16c57b1f038dd6bc9b7..56a293268a6d75546bbf6e92fbca505569639582 100644 |
--- a/runtime/vm/debugger.cc |
+++ b/runtime/vm/debugger.cc |
@@ -881,12 +881,13 @@ const char* ActivationFrame::ToCString() { |
} |
-void ActivationFrame::PrintToJSONObject(JSONObject* jsobj) { |
+void ActivationFrame::PrintToJSONObject(JSONObject* jsobj, |
+ bool full) { |
const Script& script = Script::Handle(SourceScript()); |
jsobj->AddProperty("type", "Frame"); |
- jsobj->AddProperty("script", script); |
+ jsobj->AddProperty("script", script, !full); |
jsobj->AddProperty("tokenPos", TokenPos()); |
- jsobj->AddProperty("function", function()); |
+ jsobj->AddProperty("function", function(), !full); |
jsobj->AddProperty("code", code()); |
{ |
JSONArray jsvars(jsobj, "vars"); |
@@ -898,7 +899,7 @@ void ActivationFrame::PrintToJSONObject(JSONObject* jsobj) { |
intptr_t unused; |
VariableAt(v, &var_name, &unused, &unused, &var_value); |
jsvar.AddProperty("name", var_name.ToCString()); |
- jsvar.AddProperty("value", var_value); |
+ jsvar.AddProperty("value", var_value, !full); |
} |
} |
} |