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

Unified Diff: runtime/vm/service_event.cc

Issue 1174313002: Allow setting break-on-exceptions option over the service protocol. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « runtime/vm/service_event.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « runtime/vm/service_event.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698