mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 12:20:27 +01:00
debugger: add usage example for --port
PR-URL: https://github.com/nodejs/node/pull/38400 Backport-PR-URL: https://github.com/nodejs/node/pull/39446 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
cde72213d1
commit
21ecee1b4b
|
|
@ -340,6 +340,7 @@ function startInspect(argv = process.argv.slice(2),
|
|||
|
||||
console.error(`Usage: ${invokedAs} script.js`);
|
||||
console.error(` ${invokedAs} <host>:<port>`);
|
||||
console.error(` ${invokedAs} --port=<port>`);
|
||||
console.error(` ${invokedAs} -p <pid>`);
|
||||
process.exit(1);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ child.stderr.setEncoding('utf8');
|
|||
|
||||
const expectedLines = [
|
||||
/^\(node:\d+\) \[DEP0068\] DeprecationWarning:/,
|
||||
/Usage: .*node.* debug script\.js\r?\n .*node.* debug <host>:<port>\r?\n .*node.* debug -p <pid>\r?\n$/,
|
||||
/Usage: .*node.* debug script\.js\r?\n .*node.* debug <host>:<port>\r?\n .*node.* debug --port=<port>\r?\n .*node.* debug -p <pid>\r?\n$/,
|
||||
];
|
||||
|
||||
let actualUsageMessage = '';
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user