我正在我的移动设备(htc one)上远程调试Chrome中的移动网站,通过USB连接到我的Mac。一切正常,除了我在桌面浏览器中每隔~30秒收到一次错误:
Detached from the target
Remote debugging has been terminated with reason: websocket_closed
Please re-attch to the new target.
如果我然后使用 adb devices 检查连接的设备,则没有。所以我拔下我的设备,等待几秒钟,再次用 adb forward tcp:9222 localabstract:chrome_devtools_remote 重新连接,并且everthing工作正常 - 直到出现同样的错误。
有人知道如何假装这个错误吗?