From 8a789a4ea30bbb08470cb8a45fb3ce4cb59b857b Mon Sep 17 00:00:00 2001 From: Rafael Gonzaga Date: Mon, 27 Jul 2020 18:53:13 -0300 Subject: [PATCH] debugger: add usage example for `--port` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/38400 Backport-PR-URL: https://github.com/nodejs/node/pull/39446 Reviewed-By: Michaƫl Zasso Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- lib/internal/inspector/_inspect.js | 1 + test/parallel/test-debug-usage.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/internal/inspector/_inspect.js b/lib/internal/inspector/_inspect.js index 43e62c874dc82c..487c8837752e8e 100644 --- a/lib/internal/inspector/_inspect.js +++ b/lib/internal/inspector/_inspect.js @@ -340,6 +340,7 @@ function startInspect(argv = process.argv.slice(2), console.error(`Usage: ${invokedAs} script.js`); console.error(` ${invokedAs} :`); + console.error(` ${invokedAs} --port=`); console.error(` ${invokedAs} -p `); process.exit(1); } diff --git a/test/parallel/test-debug-usage.js b/test/parallel/test-debug-usage.js index eb9594f236b35c..fcf2d8edb944e0 100644 --- a/test/parallel/test-debug-usage.js +++ b/test/parallel/test-debug-usage.js @@ -11,7 +11,7 @@ child.stderr.setEncoding('utf8'); const expectedLines = [ /^\(node:\d+\) \[DEP0068\] DeprecationWarning:/, - /Usage: .*node.* debug script\.js\r?\n .*node.* debug :\r?\n .*node.* debug -p \r?\n$/, + /Usage: .*node.* debug script\.js\r?\n .*node.* debug :\r?\n .*node.* debug --port=\r?\n .*node.* debug -p \r?\n$/, ]; let actualUsageMessage = '';