Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Unified Diff: runtime/vm/debugger.cc

Issue 1100583006: Add crash dumps to service protocol and Observatory (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}
}
}
« runtime/vm/debugger.h ('K') | « runtime/vm/debugger.h ('k') | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698