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

Unified Diff: runtime/vm/isolate.cc

Issue 1399743002: Straw man setExceptionPauseMode (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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/observatory/tests/service/pause_on_exceptions_test.dart ('k') | runtime/vm/service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate.cc
diff --git a/runtime/vm/isolate.cc b/runtime/vm/isolate.cc
index 226a46a512aa100fec9f331dd856eb550d340a49..47fbc269682880c9d34a398a00c60a8f85eda226 100644
--- a/runtime/vm/isolate.cc
+++ b/runtime/vm/isolate.cc
@@ -1822,6 +1822,21 @@ void Isolate::VisitPrologueWeakPersistentHandles(HandleVisitor* visitor) {
}
+static const char* ExceptionPauseInfoToServiceEnum(Dart_ExceptionPauseInfo pi) {
+ switch (pi) {
+ case kPauseOnAllExceptions:
+ return "All";
+ case kNoPauseOnExceptions:
+ return "None";
+ case kPauseOnUnhandledExceptions:
+ return "Unhandled";
+ default:
+ UNIMPLEMENTED();
+ return NULL;
+ }
+}
+
+
void Isolate::PrintJSON(JSONStream* stream, bool ref) {
JSONObject jsobj(stream);
jsobj.AddProperty("type", (ref ? "@Isolate" : "Isolate"));
@@ -1869,6 +1884,9 @@ void Isolate::PrintJSON(JSONStream* stream, bool ref) {
jsobj.AddProperty("pauseEvent", &pause_event);
}
+ jsobj.AddProperty("exceptionPauseMode",
+ ExceptionPauseInfoToServiceEnum(debugger()->GetExceptionPauseInfo()));
+
const Library& lib =
Library::Handle(object_store()->root_library());
if (!lib.IsNull()) {
« no previous file with comments | « runtime/observatory/tests/service/pause_on_exceptions_test.dart ('k') | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698