Index: runtime/vm/debugger.cc |
diff --git a/runtime/vm/debugger.cc b/runtime/vm/debugger.cc |
index 1b3d84a97e441602c1a7ec5cce5838387b56109a..4fc7fe6cd24444b1dea6b42e29f94cca9c1937bb 100644 |
--- a/runtime/vm/debugger.cc |
+++ b/runtime/vm/debugger.cc |
@@ -44,6 +44,7 @@ DEFINE_FLAG(bool, steal_breakpoints, false, |
"the VM service."); |
DECLARE_FLAG(bool, trace_isolates); |
+DECLARE_FLAG(bool, warn_on_pause_with_no_debugger); |
Debugger::EventHandler* Debugger::event_handler_ = NULL; |
@@ -281,7 +282,8 @@ static bool ServiceNeedsDebuggerEvent(DebuggerEvent::EventType type) { |
case DebuggerEvent::kBreakpointReached: |
case DebuggerEvent::kExceptionThrown: |
case DebuggerEvent::kIsolateInterrupted: |
- return Service::debug_stream.enabled(); |
+ return (Service::debug_stream.enabled() || |
+ FLAG_warn_on_pause_with_no_debugger); |
case DebuggerEvent::kIsolateCreated: |
case DebuggerEvent::kIsolateShutdown: |