new inspector.Session()


创建一个 inspector.Session 类的新实例。Inspector 会话需要先通过 session.connect() 连接,然后才能将消息发送到 inspector 后端。

【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.】