Index: runtime/vm/isolate.h |
diff --git a/runtime/vm/isolate.h b/runtime/vm/isolate.h |
index 77b1fe690e81e508174911a8b028a1208007300d..1db98cc46fa308586872ddbc2d5b86742697c64e 100644 |
--- a/runtime/vm/isolate.h |
+++ b/runtime/vm/isolate.h |
@@ -304,6 +304,9 @@ class Isolate : public BaseIsolate { |
Mutex* mutex() const { return mutex_; } |
Debugger* debugger() const { |
+ if (!FLAG_support_debugger) { |
+ return NULL; |
+ } |
ASSERT(debugger_ != NULL); |
return debugger_; |
} |