new inspector.Session()


创建 inspector.Session 类的新实例。检查器会话需要通过 session.connect() 连接才能将消息发送到检查器后端。

¥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.

使用 Session 时,控制台 API 输出的对象不会被释放,除非我们手动执行 Runtime.DiscardConsoleEntries 命令。

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