node/doc/api
Aleksei Koziatinskii f02dfdb2b5 inspector: add inspector.waitForDebugger()
This method blocks current node process until a client sends
Runtime.runifWaitingForDebugger.

It can be useful when we need to report inspector.url() before
waiting for connection:
```
inspector.open(0, undefined, false);
fs.writeFileSync(someFileName, inspector.url());
inspector.waitForDebugger();
```

PR-URL: https://github.com/nodejs/node/pull/28453
Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Rich Trott <rtrott@gmail.com>
2019-07-20 22:19:06 -07:00
..
addons.md doc: format try...catch consistently 2019-07-02 14:06:01 -04:00
assert.md doc: add examples at assert.strictEqual 2019-07-17 21:13:48 -07:00
async_hooks.md doc: remove "note that" from async_hooks.md 2019-06-23 07:10:04 -07:00
buffer.md doc: add example for Buffer.isEncoding() 2019-06-23 23:00:03 -07:00
child_process.md doc: add code example to subprocess.stdout 2019-07-20 12:42:37 -07:00
cli.md policy: add policy-integrity to mitigate policy tampering 2019-07-20 13:24:58 -07:00
cluster.md doc: format Unix consistently 2019-07-08 13:34:05 -04:00
console.md doc: remove "note that" from console.md 2019-06-23 07:09:57 -07:00
crypto.md doc: add documentation for createDiffieHellmanGroup 2019-07-14 23:17:00 -07:00
debugger.md inspector: use js_app.html as the landing page for chrome devtools 2018-06-28 09:24:02 -03:00
deprecations.md doc: drop 'for more details' in deprecations 2019-07-13 10:08:35 -04:00
dgram.md doc: remove "note that" from dgram.md 2019-06-23 07:09:54 -07:00
dns.md doc: remove unnecessary stability specifiers 2019-07-02 13:13:03 -04:00
documentation.md doc: simplify system call material in doc overview 2019-06-02 00:10:01 +02:00
domain.md doc: remove "note that" from domain.md 2019-06-23 07:09:50 -07:00
errors.md inspector: add inspector.waitForDebugger() 2019-07-20 22:19:06 -07:00
esm.md esm: implement "pkg-exports" proposal 2019-07-18 14:54:16 -07:00
events.md doc: remove "note that" from events.md 2019-06-23 07:09:34 -07:00
fs.md doc: format Unix consistently 2019-07-08 13:34:05 -04:00
globals.md lib: move queueMicrotask to stable 2019-03-08 08:19:38 -06:00
http2.md doc: clarify http2 server.close() behavior 2019-07-08 13:38:06 -04:00
http.md http: add response.writableFinished 2019-07-16 10:26:08 -07:00
https.md 2019-06-27, Version 12.5.0 (Current) 2019-06-27 15:55:50 +02:00
index.md doc: add node-report documentation 2019-01-18 10:35:55 +05:30
inspector.md inspector: add inspector.waitForDebugger() 2019-07-20 22:19:06 -07:00
intl.md doc: sort bottom-of-file markdown links 2018-11-28 13:09:31 -08:00
modules.md doc: remove "note that" from modules.md 2019-06-23 07:07:39 -07:00
n-api.md doc: amplify warning for execute callback 2019-07-20 12:32:06 -07:00
net.md doc: format Unix consistently 2019-07-08 13:34:05 -04:00
os.md doc: improve os.homedir() docs 2019-07-17 21:48:40 -07:00
path.md doc: fix extname with the correct description 2019-04-20 17:01:09 +03:00
perf_hooks.md perf_hooks: add HttpRequest statistics monitoring #28445 2019-07-12 00:36:27 +02:00
policy.md policy: add policy-integrity to mitigate policy tampering 2019-07-20 13:24:58 -07:00
process.md doc: add example for beforeExit event 2019-07-17 22:01:22 -07:00
punycode.md doc: prevent some redirections 2018-07-14 22:57:03 +03:00
querystring.md benchmark,doc,lib: capitalize more comments 2019-03-27 17:20:06 +01:00
readline.md readline: expose stream API in cursorTo() 2019-07-16 10:03:19 -04:00
repl.md 2019-05-21, Version 12.3.0 (Current) 2019-05-21 21:23:52 +02:00
report.md report: modify getReport() to return an Object 2019-07-12 14:48:09 -07:00
stream.md doc: add missing version metadata for Readable.from 2019-07-15 22:28:36 +02:00
string_decoder.md string_decoder: support typed array or data view 2018-09-17 17:48:44 +02:00
synopsis.md doc: move Usage and Example to same header level 2019-07-09 19:45:20 -07:00
timers.md benchmark,doc,lib: capitalize more comments 2019-03-27 17:20:06 +01:00
tls.md doc: make tls links more readable 2019-07-08 13:42:23 -04:00
tracing.md doc: document trace-events category for dns requests 2019-06-12 19:42:54 -07:00
tty.md tty: expose stream API from readline methods 2019-07-18 17:20:45 -04:00
url.md doc: remove "note that" from url.md 2019-06-23 07:07:30 -07:00
util.md doc: remove "note that" from util.md 2019-06-23 07:07:28 -07:00
v8.md src: export number_of_native_contexts and number_of_detached_contexts 2019-05-30 15:25:55 +02:00
vm.md doc: fix section order in vm.md 2019-01-14 09:36:41 +01:00
worker_threads.md doc: fix minor typo 2019-07-15 19:24:59 -07:00
zlib.md doc: add example for zlib.createGzip() 2019-07-17 22:00:26 -07:00