summaryrefslogtreecommitdiff
path: root/src/node_internals.h
diff options
context:
space:
mode:
authorcornholio <0@mcornholio.ru>2017-06-11 22:01:27 +0300
committerRefael Ackermann <refack@gmail.com>2017-06-15 22:50:56 -0400
commit2777a7e04f9a116937296ecd1a7ebd4a32766df6 (patch)
tree1c404a7b39d9d3607b2b3f6f74614b1aa1951a8d /src/node_internals.h
parentf462ad1f35dfb2e8827e383d46ba74058aedfcbc (diff)
downloadandroid-node-v8-2777a7e04f9a116937296ecd1a7ebd4a32766df6.tar.gz
android-node-v8-2777a7e04f9a116937296ecd1a7ebd4a32766df6.tar.bz2
android-node-v8-2777a7e04f9a116937296ecd1a7ebd4a32766df6.zip
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 <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'src/node_internals.h')
-rw-r--r--src/node_internals.h6
1 files changed, 6 insertions, 0 deletions
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 <stdint.h>
#include <stdlib.h>
@@ -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;