Index: runtime/vm/isolate.cc |
diff --git a/runtime/vm/isolate.cc b/runtime/vm/isolate.cc |
index 70cca1ab368e7c03d20569c3f4be49ce83ecb902..7d1b118b42fc38a58783c14567c9ce5766400abb 100644 |
--- a/runtime/vm/isolate.cc |
+++ b/runtime/vm/isolate.cc |
@@ -1950,7 +1950,13 @@ void Isolate::PrintJSON(JSONStream* stream, bool ref) { |
jsobj.AddProperty("pauseOnExit", message_handler()->should_pause_on_exit()); |
if (debugger() != NULL) { |
- if (message_handler()->is_paused_on_start()) { |
+ if (!is_runnable()) { |
+ // Isolate is not yet runnable. |
+ ASSERT(debugger()->PauseEvent() == NULL); |
+ ServiceEvent pause_event(this, ServiceEvent::kNone); |
+ jsobj.AddProperty("pauseEvent", &pause_event); |
+ } else if (message_handler()->is_paused_on_start() || |
+ message_handler()->should_pause_on_start()) { |
ASSERT(debugger()->PauseEvent() == NULL); |
ServiceEvent pause_event(this, ServiceEvent::kPauseStart); |
jsobj.AddProperty("pauseEvent", &pause_event); |