Skip to content

Commit 403ae9c

Browse files
committed
doc,src,test: use moved inspector help page
1 parent 2a6b732 commit 403ae9c

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

doc/api/debugger.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ script to debug.
1616
```console
1717
$ node inspect myscript.js
1818
< Debugger listening on ws://127.0.0.1:9229/621111f9-ffcb-4e82-b718-48a145fa5db8
19-
< For help, see: https://nodejs.org/api/inspector.html
19+
< For help, see: https://nodejs.org/learn/getting-started/debugging
2020
<
2121
connecting to 127.0.0.1:9229 ... ok
2222
< Debugger attached.
@@ -45,7 +45,7 @@ setTimeout(() => {
4545
console.log('hello');
4646
$ NODE_INSPECT_RESUME_ON_START=1 node inspect myscript.js
4747
< Debugger listening on ws://127.0.0.1:9229/f1ed133e-7876-495b-83ae-c32c6fc319c2
48-
< For help, see: https://nodejs.org/api/inspector.html
48+
< For help, see: https://nodejs.org/learn/getting-started/debugging
4949
<
5050
connecting to 127.0.0.1:9229 ... ok
5151
< Debugger attached.
@@ -131,7 +131,7 @@ is not loaded yet:
131131
```console
132132
$ node inspect main.js
133133
< Debugger listening on ws://127.0.0.1:9229/48a5b28a-550c-471b-b5e1-d13dd7165df9
134-
< For help, see: https://nodejs.org/api/inspector.html
134+
< For help, see: https://nodejs.org/learn/getting-started/debugging
135135
<
136136
connecting to 127.0.0.1:9229 ... ok
137137
< Debugger attached.
@@ -158,7 +158,7 @@ given expression evaluates to `true`:
158158
```console
159159
$ node inspect main.js
160160
< Debugger listening on ws://127.0.0.1:9229/ce24daa8-3816-44d4-b8ab-8273c8a66d35
161-
< For help, see: https://nodejs.org/api/inspector.html
161+
< For help, see: https://nodejs.org/learn/getting-started/debugging
162162
<
163163
connecting to 127.0.0.1:9229 ... ok
164164
< Debugger attached.
@@ -253,7 +253,7 @@ or break on the first line for step-by-step debugging.
253253
```console
254254
$ node --inspect index.js
255255
Debugger listening on ws://127.0.0.1:9229/dc9010dd-f8b8-4ac5-a510-c1a114ec7d29
256-
For help, see: https://nodejs.org/api/inspector.html
256+
For help, see: https://nodejs.org/learn/getting-started/debugging
257257
```
258258

259259
(In the example above, the UUID dc9010dd-f8b8-4ac5-a510-c1a114ec7d29

doc/api/inspector.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,12 +465,12 @@ Return the URL of the active inspector, or `undefined` if there is none.
465465
```console
466466
$ node --inspect -p 'inspector.url()'
467467
Debugger listening on ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34
468-
For help, see: https://nodejs.org/api/inspector.html
468+
For help, see: https://nodejs.org/learn/getting-started/debugging
469469
ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34
470470

471471
$ node --inspect=localhost:3000 -p 'inspector.url()'
472472
Debugger listening on ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a
473-
For help, see: https://nodejs.org/api/inspector.html
473+
For help, see: https://nodejs.org/learn/getting-started/debugging
474474
ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a
475475

476476
$ node -p 'inspector.url()'

src/inspector_socket_server.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,8 @@ void PrintDebuggerReadyMessage(
247247
FormatWsAddress(host, server_socket->port(), id, true).c_str());
248248
}
249249
}
250-
fprintf(out, "For help, see: %s\n", "https://nodejs.org/api/inspector.html");
250+
fprintf(out, "For help, see: %s\n",
251+
"https://nodejs.org/learn/getting-started/debugging");
251252
fflush(out);
252253
}
253254

test/internet/test-inspector-help-page.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function check(url, cb) {
2828
});
2929

3030
res.on('end', common.mustCall(() => {
31-
assert.match(result, /<title>Inspector \| Node\.js/);
31+
assert.match(result, />Debugging Node\.js</);
3232
cb();
3333
}));
3434
})).on('error', common.mustNotCall);

0 commit comments

Comments
 (0)