Index: src/inspector/v8-inspector-impl.cc |
diff --git a/src/inspector/v8-inspector-impl.cc b/src/inspector/v8-inspector-impl.cc |
index 705fd793deecb33e24b19ed5c6f7b7481579d410..3c55507c5a0a5523bfa168e0f343d05510cee50c 100644 |
--- a/src/inspector/v8-inspector-impl.cc |
+++ b/src/inspector/v8-inspector-impl.cc |
@@ -56,9 +56,13 @@ V8InspectorImpl::V8InspectorImpl(v8::Isolate* isolate, |
m_debugger(new V8Debugger(isolate, this)), |
m_capturingStackTracesCount(0), |
m_lastExceptionId(0), |
- m_lastContextId(0) {} |
+ m_lastContextId(0) { |
+ v8::debug::SetConsoleDelegate(m_isolate, console()); |
+} |
-V8InspectorImpl::~V8InspectorImpl() {} |
+V8InspectorImpl::~V8InspectorImpl() { |
+ v8::debug::SetConsoleDelegate(m_isolate, nullptr); |
+} |
int V8InspectorImpl::contextGroupId(v8::Local<v8::Context> context) { |
return contextGroupId(InspectedContext::contextId(context)); |