Skip to content

Commit

Permalink
inspector: add tips for Session
Browse files Browse the repository at this point in the history
PR-URL: #47195
Reviewed-By: Kohei Ueno <kohei.ueno119@gmail.com>
  • Loading branch information
theanarkh authored and MoLow committed Jul 6, 2023
1 parent 0d3e3dd commit cc7e5dd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/api/inspector.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ changes:

Deactivate the inspector. Blocks until there are no active connections.

When using `Session`, the object outputed by the console API will not be
released, unless we performed manually `Runtime.DiscardConsoleEntries`
command.

## `inspector.console`

* {Object} An object to send messages to the remote inspector console.
Expand Down Expand Up @@ -106,6 +110,10 @@ Create a new instance of the `inspector.Session` class. The inspector session
needs to be connected through [`session.connect()`][] before the messages
can be dispatched to the inspector backend.

When using `Session`, the object outputed by the console API will not be
released, unless we performed manually `Runtime.DiscardConsoleEntries`
command.

### Event: `'inspectorNotification'`

<!-- YAML
Expand Down

0 comments on commit cc7e5dd

Please sign in to comment.