Understand errors and warnings better with Gemini  |  Chrome DevTools  |  Chrome for Developers

Chrome DevTools 最新推出的功能 “Understand console messages with AI” 可通过 AI 帮助开发人员更好地理解控制台中的错误和警告信息。本功能基于 Google 的生成式人工智能技术(Gemini)来提供详细的解释。

使用要求

  1. 位于支持区域且年满 18 岁。
  2. 使用 Chrome 125 版本或更高版本。
  3. 使用 Google 账户登录 Chrome。
  4. 在 DevTools 设置中选择英语(美国)。
  5. 开启 “Understand console messages with AI” 选项。

启用步骤

  1. 打开 DevTools,进入设置。
  2. 在 “Preferences” -> “Console” 中勾选 “Understand console messages with AI”。
  3. 如未满足上述要求,会有提示信息。

获取控制台消息解释

  1. 打开 DevTools 并检查页面控制台中的消息。
  2. 在错误消息上方悬停,会出现 “Understand this error” 按钮,点击即可弹出解释对话框。
  3. 阅读隐私通知和法律声明,并同意相关的服务条款。
  4. 点击 “Continue” 获取解释。

数据使用