diff options
author | Chengzhong Wu <legendecas@gmail.com> | 2022-09-13 12:04:24 +0300 |
---|---|---|
committer | Juan José Arboleda <soyjuanarbol@gmail.com> | 2022-10-11 22:45:24 +0300 |
commit | 4e49d5d1b4e4d8d7f7cd4380150cdf077fdd08e1 (patch) | |
tree | c8d5163d3983c54b37380110ad844ff5f5c5c72a /doc | |
parent | 31f809acca92ff89bd0ce8617192ba30bc3b28d1 (diff) |
inspector: expose inspector.close on workers
Workers can open their own inspector agent with `inspector.open`.
They should be able to close their own inspector agent too with
`inspector.close`.
PR-URL: https://github.com/nodejs/node/pull/44489
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/inspector.md | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/doc/api/inspector.md b/doc/api/inspector.md index 10458d9ac51..dd5fac313d0 100644 --- a/doc/api/inspector.md +++ b/doc/api/inspector.md @@ -19,8 +19,6 @@ const inspector = require('node:inspector'); Deactivate the inspector. Blocks until there are no active connections. -This function is not available in [worker threads][]. - ## `inspector.console` * {Object} An object to send messages to the remote inspector console. @@ -256,4 +254,3 @@ session.post('HeapProfiler.takeHeapSnapshot', null, (err, r) => { [`'Debugger.paused'`]: https://chromedevtools.github.io/devtools-protocol/v8/Debugger#event-paused [`session.connect()`]: #sessionconnect [security warning]: cli.md#warning-binding-inspector-to-a-public-ipport-combination-is-insecure -[worker threads]: worker_threads.md |