diff options
author | Refael Ackermann <refack@gmail.com> | 2017-05-28 23:28:01 -0400 |
---|---|---|
committer | Refael Ackermann <refack@gmail.com> | 2017-05-29 11:33:59 -0400 |
commit | 16689e30aeff03c8c47a605425727cf190c169e9 (patch) | |
tree | 6d7f5dbc8b930f533dc2f5b8e52fdcea1b19adcb /src/node_debug_options.h | |
parent | dbbe1faf3089958c4b02fdde4d162ac80ad5db4a (diff) | |
download | android-node-v8-16689e30aeff03c8c47a605425727cf190c169e9.tar.gz android-node-v8-16689e30aeff03c8c47a605425727cf190c169e9.tar.bz2 android-node-v8-16689e30aeff03c8c47a605425727cf190c169e9.zip |
inspector: --debug* deprecation and invalidation
PR-URL: https://github.com/nodejs/node/pull/12949
Fixes: https://github.com/nodejs/node/issues/12364
Fixes: https://github.com/nodejs/node/issues/12630
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jan Krems <jan.krems@gmail.com>
Diffstat (limited to 'src/node_debug_options.h')
-rw-r--r-- | src/node_debug_options.h | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/src/node_debug_options.h b/src/node_debug_options.h index fb86060f43..6fdd30384f 100644 --- a/src/node_debug_options.h +++ b/src/node_debug_options.h @@ -10,25 +10,24 @@ class DebugOptions { public: DebugOptions(); bool ParseOption(const char* argv0, const std::string& option); - bool inspector_enabled() const { -#if HAVE_INSPECTOR - return inspector_enabled_; -#else - return false; -#endif // HAVE_INSPECTOR + bool inspector_enabled() const { return inspector_enabled_; } + bool deprecated_invocation() const { + return deprecated_debug_ && + inspector_enabled_ && + break_first_line_; } - bool ToolsServerEnabled(); - bool wait_for_connect() const { return wait_connect_; } + bool invalid_invocation() const { + return deprecated_debug_ && !inspector_enabled_; + } + bool wait_for_connect() const { return break_first_line_; } std::string host_name() const { return host_name_; } int port() const; void set_port(int port) { port_ = port; } private: -#if HAVE_INSPECTOR bool inspector_enabled_; -#endif // HAVE_INSPECTOR - bool wait_connect_; - bool http_enabled_; + bool deprecated_debug_; + bool break_first_line_; std::string host_name_; int port_; }; |