From 2777a7e04f9a116937296ecd1a7ebd4a32766df6 Mon Sep 17 00:00:00 2001 From: cornholio <0@mcornholio.ru> Date: Sun, 11 Jun 2017 22:01:27 +0300 Subject: inspector,cluster: fix inspect port assignment * Adding --inspect-port with debug port, instead of parsing `execArgv` * Export CLI debug options to `process.binding('config').debugOptions` (currently used only in tests) PR-URL: https://github.com/nodejs/node/pull/13619 Refs: https://github.com/nodejs/node/pull/9659 Reviewed-By: Refael Ackermann Reviewed-By: James M Snell Reviewed-By: Sam Roberts Reviewed-By: Matteo Collina Reviewed-By: Colin Ihrig --- src/node_internals.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/node_internals.h') diff --git a/src/node_internals.h b/src/node_internals.h index d857f3d4a3..d6bdf9b5ba 100644 --- a/src/node_internals.h +++ b/src/node_internals.h @@ -30,6 +30,7 @@ #include "uv.h" #include "v8.h" #include "tracing/trace_event.h" +#include "node_debug_options.h" #include #include @@ -100,6 +101,11 @@ extern bool config_pending_deprecation; // Tells whether it is safe to call v8::Isolate::GetCurrent(). extern bool v8_initialized; +// Contains initial debug options. +// Set in node.cc. +// Used in node_config.cc. +extern node::DebugOptions debug_options; + // Forward declaration class Environment; -- cgit v1.2.3