Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 0da6ab7378a4440178df3b8ece77c4db71353a3c..4bf24c4f3d7b70d3e4d33b8beb8ded3b9a60f3a5 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -5831,6 +5831,7 @@ void Debug::ProcessDebugMessages() { |
i::Execution::ProcessDebugMessages(true); |
} |
+ |
Local<Context> Debug::GetDebugContext() { |
i::Isolate* isolate = i::Isolate::Current(); |
EnsureInitializedForIsolate(isolate, "v8::Debug::GetDebugContext()"); |
@@ -5838,6 +5839,20 @@ Local<Context> Debug::GetDebugContext() { |
return Utils::ToLocal(i::Isolate::Current()->debugger()->GetDebugContext()); |
} |
+ |
+void Debug::SetLiveEditEnabled(bool enable, Isolate* isolate) { |
+ // If no isolate is supplied, use the default isolate. |
+ i::Debugger* debugger; |
+ if (isolate != NULL) { |
+ i::Isolate* internal_isolate = reinterpret_cast<i::Isolate*>(isolate); |
+ debugger = internal_isolate->debugger(); |
+ } else { |
+ debugger = i::Isolate::GetDefaultIsolateDebugger(); |
+ } |
+ debugger->set_live_edit_enabled(enable); |
+} |
+ |
+ |
#endif // ENABLE_DEBUGGER_SUPPORT |