File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,21 @@ parameter usage.
5252
5353Return the URL of the active inspector, or ` undefined ` if there is none.
5454
55+ ``` console
56+ $ node --inspect -p ' inspector.url()'
57+ Debugger listening on ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34
58+ For help see https://nodejs.org/en/docs/inspector
59+ ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34
60+
61+ $ node --inspect=localhost:3000 -p ' inspector.url()'
62+ Debugger listening on ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a
63+ For help see https://nodejs.org/en/docs/inspector
64+ ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a
65+
66+ $ node -p ' inspector.url()'
67+ undefined
68+ ```
69+
5570## ` inspector.waitForDebugger() `
5671<!-- YAML
5772added: v12.7.0
You can’t perform that action at this time.
0 commit comments