Index: runtime/vm/isolate.cc |
diff --git a/runtime/vm/isolate.cc b/runtime/vm/isolate.cc |
index bd19791cf8e74468e040ef9fb2423f77cd53f1c8..16b70e466c5ecd6054680bbd4b05c90e9340ea08 100644 |
--- a/runtime/vm/isolate.cc |
+++ b/runtime/vm/isolate.cc |
@@ -485,7 +485,7 @@ bool IsolateMessageHandler::HandleMessage(Message* message) { |
void IsolateMessageHandler::NotifyPauseOnStart() { |
- if (Service::NeedsDebugEvents()) { |
+ if (Service::debug_stream.enabled()) { |
StartIsolateScope start_isolate(isolate()); |
StackZone zone(I); |
HandleScope handle_scope(I); |
@@ -496,7 +496,7 @@ void IsolateMessageHandler::NotifyPauseOnStart() { |
void IsolateMessageHandler::NotifyPauseOnExit() { |
- if (Service::NeedsDebugEvents()) { |
+ if (Service::debug_stream.enabled()) { |
StartIsolateScope start_isolate(isolate()); |
StackZone zone(I); |
HandleScope handle_scope(I); |