diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-09-02 16:51:32 +0200 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-09-03 01:39:20 +0200 |
commit | c100d400bde53017931a7c93308e3293d50e21db (patch) | |
tree | 3b3e19d2ce618435f7ce32615fc0ca16713ce503 /src | |
parent | 04060e35b12cfa56811cbd7a786c61c30349f715 (diff) | |
download | android-node-v8-c100d400bde53017931a7c93308e3293d50e21db.tar.gz android-node-v8-c100d400bde53017931a7c93308e3293d50e21db.tar.bz2 android-node-v8-c100d400bde53017931a7c93308e3293d50e21db.zip |
src: disable debug options when inspector is unavailable
This fixes `parallel/test-cli-node-print-help` when Node.js
is compiled without the inspector.
PR-URL: https://github.com/nodejs/node/pull/22657
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/node_options.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/node_options.cc b/src/node_options.cc index 27e518d0f1..c8586ec64e 100644 --- a/src/node_options.cc +++ b/src/node_options.cc @@ -23,6 +23,7 @@ namespace options_parser { // TODO(addaleax): Make that unnecessary. DebugOptionsParser::DebugOptionsParser() { +#if HAVE_INSPECTOR AddOption("--inspect-port", "set host:port for inspector", &DebugOptions::host_port, @@ -52,6 +53,7 @@ DebugOptionsParser::DebugOptionsParser() { AddOption("--debug-brk", "", &DebugOptions::break_first_line); Implies("--debug-brk", "--debug"); AddAlias("--debug-brk=", { "--inspect-port", "--debug-brk" }); +#endif } DebugOptionsParser DebugOptionsParser::instance; |