diff --git a/src/node.cc b/src/node.cc index 680fd1add188a0..a78293e67a1477 100644 --- a/src/node.cc +++ b/src/node.cc @@ -3443,11 +3443,15 @@ static bool ParseDebugOpt(const char* arg) { PrintHelp(); exit(12); } +#if HAVE_INSPECTOR if (use_inspector) { inspector_port = port_int; } else { +#endif debug_port = port_int; +#if HAVE_INSPECTOR } +#endif } return true;