summaryrefslogtreecommitdiff
path: root/src/node_debug_options.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_debug_options.cc')
-rw-r--r--src/node_debug_options.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/node_debug_options.cc b/src/node_debug_options.cc
index 410e23acb3..97f9dce1b7 100644
--- a/src/node_debug_options.cc
+++ b/src/node_debug_options.cc
@@ -92,13 +92,7 @@ bool DebugOptions::ParseOption(const std::string& option) {
argument = option.substr(pos + 1);
}
- // --debug and --inspect are mutually exclusive
- if (option_name == "--debug") {
- debugger_enabled_ = true;
- } else if (option_name == "--debug-brk") {
- debugger_enabled_ = true;
- wait_connect_ = true;
- } else if (option_name == "--inspect") {
+ if (option_name == "--inspect") {
debugger_enabled_ = true;
enable_inspector = true;
} else if (option_name == "--inspect-brk") {
@@ -108,7 +102,7 @@ bool DebugOptions::ParseOption(const std::string& option) {
} else if ((option_name != "--debug-port" &&
option_name != "--inspect-port") ||
!has_argument) {
- // only other valid possibility is --debug-port,
+ // only other valid possibility is --inspect-port,
// which requires an argument
return false;
}