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 <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
refack authored and MylesBorins committed Oct 25, 2017
1 parent 321e3be commit e31ab7c
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 e31ab7c

Please sign in to comment.