Skip to content

Commit

Permalink
inspector: enable --inspect-brk
Browse files Browse the repository at this point in the history
PR-URL: #12615
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
refack authored and MylesBorins committed Oct 5, 2017
1 parent 452cd40 commit 5db4c6a
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 5db4c6a

Please sign in to comment.