Skip to content

Commit cc7e5dd

Browse files
theanarkhMoLow
authored andcommittedJul 6, 2023
inspector: add tips for Session
PR-URL: #47195 Reviewed-By: Kohei Ueno <kohei.ueno119@gmail.com>
1 parent 0d3e3dd commit cc7e5dd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎doc/api/inspector.md

+8
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ changes:
2727

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

30+
When using `Session`, the object outputed by the console API will not be
31+
released, unless we performed manually `Runtime.DiscardConsoleEntries`
32+
command.
33+
3034
## `inspector.console`
3135

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

113+
When using `Session`, the object outputed by the console API will not be
114+
released, unless we performed manually `Runtime.DiscardConsoleEntries`
115+
command.
116+
109117
### Event: `'inspectorNotification'`
110118

111119
<!-- YAML

0 commit comments

Comments
 (0)