Browse Source

inspector: enable --inspect-brk

PR-URL: https://github.com/nodejs/node/pull/12615
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
v6.x-staging
Refael Ackermann 8 years ago
committed by Myles Borins
parent
commit
5db4c6a76b
No known key found for this signature in database GPG Key ID: 933B01F40B5CA946
  1. 9
      src/node.cc

9
src/node.cc

@ -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,

Loading…
Cancel
Save