diff --git a/configure b/configure index d9676a8d8d..c16ee25743 100755 --- a/configure +++ b/configure @@ -1307,6 +1307,7 @@ def configure_intl(o): def configure_inspector(o): disable_inspector = (options.without_inspector or + options.with_intl in (None, 'none') or options.without_ssl) o['variables']['v8_enable_inspector'] = 0 if disable_inspector else 1 diff --git a/src/node.cc b/src/node.cc index d75c1d0a70..b57dcd9ec6 100644 --- a/src/node.cc +++ b/src/node.cc @@ -4789,7 +4789,7 @@ inline int Start_TTDReplay(Isolate* isolate, void* isolate_context, // Start debug agent when argv has --debug StartDebug(&env, nullptr, debug_options); - if (debug_options.inspector_enabled()) + if (debug_options.inspector_enabled() && !v8_platform.InspectorStarted(&env)) return 12; // Signal internal error. {