Index: runtime/vm/service_event.cc |
diff --git a/runtime/vm/service_event.cc b/runtime/vm/service_event.cc |
index 2c6680df21b2c1cc862434a8154dd7ddf25bfa73..4b75a16c4fb44f3a7c1cfb291d5cf5450522fc25 100644 |
--- a/runtime/vm/service_event.cc |
+++ b/runtime/vm/service_event.cc |
@@ -84,6 +84,8 @@ const char* ServiceEvent::EventTypeToCString(EventType type) { |
return "GC"; // TODO(koda): Change to GarbageCollected. |
case kInspect: |
return "Inspect"; |
+ case kDebuggerSettingsUpdate: |
+ return "_DebuggerSettingsUpdate"; |
case kIllegal: |
return "Illegal"; |
default: |
@@ -110,6 +112,7 @@ const char* ServiceEvent::stream_id() const { |
case kBreakpointResolved: |
case kBreakpointRemoved: |
case kInspect: |
+ case kDebuggerSettingsUpdate: |
return "Debug"; |
case kGC: |
@@ -139,6 +142,10 @@ void ServiceEvent::PrintJSON(JSONStream* js) const { |
jsobj.AddProperty("breakpoint", breakpoint()); |
} |
} |
+ if (type() == kDebuggerSettingsUpdate) { |
+ JSONObject jssettings(&jsobj, "_debuggerSettings"); |
+ isolate()->debugger()->PrintSettingsToJSONObject(&jssettings); |
+ } |
if (top_frame() != NULL) { |
JSONObject jsFrame(&jsobj, "topFrame"); |
top_frame()->PrintToJSONObject(&jsFrame); |