gpt4 book ai didi

google-chrome - 如何调试 chrome manifest.json?

转载 作者:行者123 更新时间:2023-12-04 16:08:42 27 4
gpt4 key购买 nike

我正在开发 chrome.bluetooth 应用程序。但是, manifest.json 有问题。但是,我看不到在 manifest.json 中设置断点的任何方法 - 显然,它是声明性的。

我的 manifest.json 是:

{
"name": "Bluetooth Low Energy Test App",
"description": "App testing the chrome.bluetoothLowEnergy API",
"version": "0.1",
"app": {
"background": {
"scripts": ["background.js"]
}
},
"bluetooth": {
"low_energy": true
}
}

有没有办法调试 manifest.json?也就是说,看看它如何或在哪里为它的各种声明提供错误的值。绒毛?任何事物?

我已经在 Mac OSX 和 ChromeOS 上的稳定 (42) 和金丝雀 (44) 版本的 chrome 上尝试过这个,但没有看到明显的解决方案。

最佳答案

迟到的答案,我知道,但以供将来引用。在 Chrome Dev Tools 上查看有关调试 PWA 的页面。它说在开发工具的应用程序选项卡中,您可以选择“ list ”选项。

https://developers.google.com/web/tools/chrome-devtools/progressive-web-apps#manifest

关于google-chrome - 如何调试 chrome manifest.json?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29852602/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com