Skip to content

Commit

Permalink
inspector: enable --inspect-brk
Browse files Browse the repository at this point in the history
  • Loading branch information
refack committed Sep 20, 2017
1 parent 66187fa commit de1b9f6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3616,6 +3616,15 @@ static bool ParseDebugOpt(const char* arg) {
use_debug_agent = true;
use_inspector = true;
port = arg + sizeof("--inspect=") - 1;
} else if (!strcmp(arg, "--inspect-brk")) {
use_debug_agent = true;
use_inspector = true;
debug_wait_connect = true;
} else if (!strncmp(arg, "--inspect-brk=", sizeof("--inspect-brk=") - 1)) {
use_debug_agent = true;
use_inspector = true;
debug_wait_connect = true;
port = arg + sizeof("--inspect-brk=") - 1;
#else
} else if (!strncmp(arg, "--inspect", sizeof("--inspect") - 1)) {
fprintf(stderr,
Expand Down

0 comments on commit de1b9f6

Please sign in to comment.