在 Chrome 浏览器的地址字段中,输入 chrome://inspect#devices 以启动 Chrome 检查器。您应该会在页面上看到设备列表,并且画布 HTML 网址应该会列在测试用 Google Home 或 Google Nest 设备的名称下方。请注意,Chrome 可能需要一些时间才能发现您网络中的所有设备。
点击 HTML 网址下的 inspect 链接以启动 Chrome 开发者工具。
Chrome 开发者工具会在自己的窗口中加载。您可以点击抓屏 () 按钮来查看设备上呈现的网页 GUI。以下屏幕截图展示了您的 Web 应用在 Chrome 开发者工具中的显示方式:
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2023-12-02。"],[[["Debug your Interactive Canvas web app using Chrome DevTools on Google Home or Nest smart displays running supported software and firmware versions."],["Set up your environment by enabling your Action for testing, connecting devices to the same network, ensuring network connectivity, and using the same Google account."],["Connect to the debugger by launching Chrome Inspector, locating your device and Canvas HTML URL, and clicking \"inspect\" to open DevTools."],["Utilize debugging tips such as refreshing the DevTools page, checking for JavaScript errors, adding breakpoints, and monitoring performance and memory usage."],["Third-party smart display devices are not supported for debugging Canvas web apps."]]],[]]