> For the complete documentation index, see [llms.txt](https://gitbook.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.com/docs/documentation/zh/bang-zhu/report-a-bug.md).

# 报告错误

采集 GitBook 支持团队调查错误所需的网络和控制台信息

可通过应用内的支持小组件或发送电子邮件来报告错误 <support@gitbook.com>，并尽可能提供你是如何遇到该问题的上下文。

对于某些问题，支持团队会要求提供 **HAR 抓取** (HTTP Archive）。它会记录你的浏览器与 GitBook 应用之间的请求和响应，方便团队进一步调查。请将其与控制台日志一并捕获：

{% tabs %}
{% tab title="Chrome" %}

1. 在 Chrome 中，前往 GitBook 中你遇到该问题的页面。
2. 点击 **⋮** 在浏览器窗口右上角，然后 **更多工具 → 开发者工具**.
3. 点击 **网络** 选项卡，然后勾选 **保留日志**.
4. 确认“网络”选项卡左上角的红色圆圈可见——录制已开始。如果圆圈是黑色的，请单击它以开始录制。
5. 刷新页面并复现该问题。
6. 点击“网络”选项卡工具栏中的下载图标（↓），将所有请求保存为 HAR 文件。
7. 点击 **控制台** 选项卡，在控制台中的任意位置右键单击，然后点击 **另存为…**。将文件命名为 `Chrome-console.log`.
8. 通过共享链接将这两个文件回复到你的工单中。
   {% endtab %}

{% tab title="Firefox" %}

1. 在 Firefox 中，前往 GitBook 中你遇到该问题的页面。
2. 点击右上角的 Firefox 菜单，然后 **Web 开发者 → 网络**.
3. 点击 **网络** 选项卡，然后勾选 **保留日志**.
4. 在捕获运行时刷新页面并复现该问题。
5. 右键单击活动窗格中的任意一行，然后点击 **全部保存为 HAR**.
6. 点击 **控制台** 选项卡，右键单击任意一行，然后点击 **全选**。将内容粘贴到名为 `console-log.txt`.
7. 通过共享链接将这两个文件回复到你的工单中。
   {% endtab %}

{% tab title="Safari" %}

1. 在 Safari 中，前往 GitBook 中你遇到该问题的页面。
2. 在菜单栏中，点击 **开发** 并选择 **显示 Web 检查器**.
3. 点击 **控制台** 选项卡，然后勾选 **保留日志**，然后前往 **网络** 选项卡。
4. 在捕获运行时刷新页面并复现该问题。
5. 右键单击活动窗格中的任意一行，然后点击 **导出 HAR**.
6. 在 **控制台** 选项卡，右键单击任意一行并点击 **全选**。将内容粘贴到名为 `console-log.txt`.
7. 通过共享链接将这两个文件回复到你的工单中。
   {% endtab %}

{% tab title="Edge" %}

1. 在 Edge 中，前往 GitBook 中你遇到该问题的页面。
2. 点击右上角的 Edge 菜单（⋮）并选择 **开发者工具**.
3. 点击 **网络** 选项卡，并清除 **导航时的条目** 选项（带红色 X 的蓝色箭头）。
4. 确认绿色播放按钮（**开始分析会话**）已被选中——捕获正在运行。
5. 刷新页面并复现该问题。
6. 点击 **导出为 HAR** 图标（软盘）。
7. 在 **控制台** 选项卡，右键单击任意一行并点击 **全部复制**。将内容粘贴到名为 `console-log.txt`.
8. 通过共享链接将这两个文件回复到你的工单中。
   {% endtab %}
   {% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://gitbook.com/docs/documentation/zh/bang-zhu/report-a-bug.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
