Index: src/isolate-inl.h |
diff --git a/src/isolate-inl.h b/src/isolate-inl.h |
index 0a2c17404e63f20e97be4507b033aa2f49a0425f..9fb16fbe96d90066a8b9fee8f7af334ec760b7c9 100644 |
--- a/src/isolate-inl.h |
+++ b/src/isolate-inl.h |
@@ -49,6 +49,16 @@ SaveContext::SaveContext(Isolate* isolate) : prev_(isolate->save_context()) { |
} |
+bool Isolate::IsDebuggerActive() { |
+#ifdef ENABLE_DEBUGGER_SUPPORT |
+ if (!NoBarrier_Load(&debugger_initialized_)) return false; |
+ return debugger()->IsDebuggerActive(); |
+#else |
+ return false; |
+#endif |
+} |
+ |
+ |
bool Isolate::DebuggerHasBreakPoints() { |
#ifdef ENABLE_DEBUGGER_SUPPORT |
return debug()->has_break_points(); |