From cc7e5dd4cddf091771285763728cab86e1710590 Mon Sep 17 00:00:00 2001 From: theanarkh Date: Fri, 21 Apr 2023 00:16:11 +0800 Subject: [PATCH] inspector: add tips for Session PR-URL: https://github.com/nodejs/node/pull/47195 Reviewed-By: Kohei Ueno --- doc/api/inspector.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/api/inspector.md b/doc/api/inspector.md index 242f4d6e77e3ce..19d2b254b81ada 100644 --- a/doc/api/inspector.md +++ b/doc/api/inspector.md @@ -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. @@ -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'`