session.connectToMainThread()
将会话连接到主线程检查器后端。如果此 API 未在 Worker 线程上调用,将会抛出异常。
【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.】
将会话连接到主线程检查器后端。如果此 API 未在 Worker 线程上调用,将会抛出异常。
【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.】