From 94a5abb1e0602fb9db81459a5e0a60829707c551 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 a699b6c16a68b5..8268d931394504 100644 --- a/doc/api/inspector.md +++ b/doc/api/inspector.md @@ -54,6 +54,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'`