diff options
Diffstat (limited to 'doc/api/inspector.md')
-rw-r--r-- | doc/api/inspector.md | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/doc/api/inspector.md b/doc/api/inspector.md index f82c53f5bc..96c3ad03c0 100644 --- a/doc/api/inspector.md +++ b/doc/api/inspector.md @@ -121,9 +121,15 @@ session.on('Debugger.paused', ({ params }) => { added: v8.0.0 --> -Connects a session to the inspector back-end. An exception will be thrown -if there is already a connected session established either through the API or by -a front-end connected to the Inspector WebSocket port. +Connects a session to the inspector back-end. + +### session.connectToMainThread() +<!-- YAML +added: REPLACEME +--> + +Connects a session to the main thread inspector back-end. An exception will +be thrown if this API was not called on a Worker thread. ### session.disconnect() <!-- YAML |