ChromeDevTools损坏-Stetho无法使用
Stetho 和 Google Chrome DevTools 在 macOS 更新后变得无法使用(我怀疑 macOS 更新是此错误的根源,但我更愿意提及它)。
这是在设备上打开“检查模式”后 DevTools 的外观(由 Facebook Stetho 库提供,适用于 Android 和 OKHttp)。
页面上不再有“CSS”样式表,字体也发生了变化。许多标签页没有显示(即网络请求),我只能访问一些错误消息:
There were 84 bytes that were not consumed while processing request 4
There were 84 bytes that were not consumed while processing request 5
There were 84 bytes that were not consumed while processing request 6
Failed to clear temp storage: undefined
我按照有关此问题的说明进行操作:无法清除临时存储和此问题:无法清除临时存储:Chrome 中的安全错误但我无法解决该问题。
这是我尝试过的:
- 使用 AppCleaner 卸载并重新安装 Chrome
- 从磁盘中删除 chrome 缓存
- 从中删除 chrome 配置文件
~/Library/Application Support/Google/Chrome - 创建并使用新的 Chrome 配置文件
- 尝试连接 Firefox 远程调试(非功能)
- 重启系统
你们中有人遇到过这个问题吗?谢谢 !
回答
您应该降级 Chrome。最新版 Chrome/Chromium 的问题https://github.com/facebook/stetho/issues/696
-
Erf, I created a StackOverflow thread instead of an issue because no one of my colleagues had the bug...
Thank you so much for your answer, I was able to fix this by downloading this version of Chromium : https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Mac/827102/
回答
作为解决方法,您可以使用其他基于 Chromium 的浏览器,例如:
-
Microsoft Edge https://www.microsoft.com/edge
-
勇敢的 https://brave.com/
您还可以使用chrome://inspect/#devices地址来检查您的数据库内容。
目前最大的缺点是您无法查看共享首选项(这在 Chromium 88 上是可能的)