session.connectToMainThread()


将会话连接到主线程检查器后端。 如果没有在工作线程上调用此 API,则会抛出异常。

Connects a session to the main thread inspector back-end. An exception will be thrown if this API was not called on a Worker thread.