noo*_*der 8 google-chrome-extension chrome-canary
我正在试验 chrome 扩展清单 v3(在 chrome canary 上),但找不到任何方法来调试 manifest.json 中定义的 service worker 脚本。对于 manifest v2,chrome://extensions/ 页面上有一个链接,可以打开后台页面控制台。有没有办法在 manifest v3 服务工作者脚本中查看日志?
我正在使用这个清单 v3 服务工作者扩展的最小工作示例进行测试:https : //gist.github.com/dotproto/3a328d6b187621b445499ba503599dc0。
此调试页面上没有提及:https : //developer.chrome.com/apps/tut_debugging
两个迁移指南中也没有提到任何内容:https : //developer.chrome.com/extensions/migrating_to_manifest_v3 https://developer.chrome.com/extensions/migrating_to_service_workers
Exo*_* 4D 18
我猜您正在寻找扩展程序的内部ServiceWorker(后端页面)及其连接。
\n\n您应该注意两个 URL:
\nchrome://inspect/#service-workerschrome://serviceworker-internals/?devtoolschrome://inspect/#service-workers
chrome://serviceworker-internals/?devtools
选项 A:从上下文菜单
\n\n选项 B:来自扩展页面
\n\n| 归档时间: |
|
| 查看次数: |
1936 次 |
| 最近记录: |