跳转到主内容

收集 HAR 文件的方式

HAR 文件可帮助我们的技术支持团队解决复杂的问题。 为了创建这种文件,我们建议使用 Chrome 或火狐浏览器。 不过, IE 11、Edge 和 Safari 也支持 .har 文件的生成和导出功能。

Chrome 浏览器

To create a HAR file in Chrome, follow these steps:

  1. 前往出现问题的 URL。 暂时不要重复导致问题的操作。

  2. Open Developer Tools:

    • From menu: Menu → More Tools → Developer Tools.
    • Keyboard: Ctrl+Shift+C, or Ctrl+Alt+I, or ⌥+⌘+I for Mac.
  3. Click the Network tab.

  4. 找到 Network 标签中的左上角的圆形按钮,并确认它处于红色录音模式。 如果是灰色的,请您单击使其变为红色的,并开始录音。

  5. Use the Clear button (the circle button with a line through it next to the record button) to clear all previous activity.

  6. Select the Preserve log check box on the Network tab.

  7. Check the Disable cache check box.

    Chrome 浏览器

  8. Reproduce the steps that create the issue.

  9. Save session as a .har file by right-clicking the grid and selecting Save as HAR with content.

  10. Send it to AdGuard support (support@adguard.com) with detailed explanation of issue. Supporting screenshots can be helpful, as well.

Edge 浏览器

  1. 前往出现问题的 URL。 暂时不要重复导致问题的操作。

  2. Open Developer Tools:

    • From menu: Menu → More Tools → Developer Tools.
    • Keyboard: Ctrl+Shift+C, or Ctrl+Alt+I, or ⌥+⌘+I for Mac.
  3. Click the Network tab.

  4. 找到 Network 标签中的左上角的圆形按钮,并确认它处于红色录音模式。 如果是灰色的,请您单击使其变为红色的,并开始录音。

  5. Use the Clear button (the circle button with a line through it next to the record button) to clear all previous activity.

  6. Select the Preserve log check box on the Network tab.

  7. Check the Disable cache check box.

    edge

  8. Reproduce the steps that create the issue.

  9. Save session as a .har file by right-clicking the grid and selecting Save as HAR with content.

  10. Send it to AdGuard support (support@adguard.com) with detailed explanation of issue. Supporting screenshots can be helpful, as well.

Firefox 浏览器

To create a HAR file in Firefox, follow these steps:

  1. 前往出现问题的 URL。 暂时不要重复导致问题的操作。

  2. Open Developer Tools in Network mode:

    • From menu: Menu → Web Developer → Network.
    • Keyboard: Ctrl+Shift+C, or ⌥+⌘+E (Mac).
  3. Note the Play/Pause button at the top left of the Network tab.

    • 按钮应处于继续记录模式。
  4. If any information is currently displayed in the grid, clear by clicking the Empty trash can button next to the play/pause button.

  5. Select the Persist Logs check box on the Network tab.

  6. Check the Disable cache check box.

    firefox

  7. Reproduce the steps that create the issue.

  8. Save session as a .har file by right-clicking the grid and selecting Save all as HAR.

  9. Send it to AdGuard support (support@adguard.com) with detailed explanation of issue. Supporting screenshots can be helpful, as well.

Internet Explorer11 浏览器

To create a HAR file in Internet Explorer 11, follow these steps:

  1. 前往出现问题的 URL。 暂时不要重复导致问题的操作。

  2. Open Developer Tools in Network mode:

    • From Tools cog wheel menu: Developer ToolsNetwork tab.
    • Keyboard: F12 → Network tab.
  3. Note the start profiling session Play button and stop profiling Stop button at top left of Network tab.

    • 录音时继续按钮将变为灰色,停止按钮为红色。 Put in Play mode.
  4. Clear any session info appearing in the lower grid using the Clear session button on Network tab. Hover over icons to see names.

    • Clear session button is a three line icon with an x on it.
  5. Check the Disable cache check box.

  6. Reproduce the steps that create the issue.

  7. Save session as a .har file by clicking the Save to disk button (Export as HAR) on Network tab.

  8. Send it to AdGuard support (support@adguard.com) with detailed explanation of issue. Supporting screenshots can be helpful, as well.

Safari 浏览器

To create a HAR file in Safari, follow these steps:

  1. Check the Safari menu bar at the top of the screen for a Develop menu.

    • If not visible, turn it on by going to Safari → Settings → Advanced.
    • Check the checkbox at the bottom next to Show Develop menu in menu bar.
  2. 前往出现问题的 URL。 暂时不要重复导致问题的操作。

  3. Open Network tab in Web Inspector:

    • From menu: Develop → Show Web Inspector → Network.
    • Keyboard: ⌥+⌘+I → Network
  4. Check Preserve Log checkbox on left side of the Network tabs, within the Other filter options... menu.

    safari

  5. Clear current Network items by clicking the Delete Trash icon at the far right of Network tabs.

    • Keyboard: ⌘+K
  6. Check the Disable caches check box.

  7. Reproduce the steps that create the issue.

  8. Save session as a .har file by clicking the Export icon next to the Delete Trash icon.

  9. Send it to AdGuard support (support@adguard.com) with detailed explanation of issue. Supporting screenshots can be helpful, too.

安卓系统

To create HAR files, follow these steps:

  1. Open AdGuard and go to Settings.

  2. Choose Advanced in the menu.

  3. Choose Low Level Settings

  4. Activate pref.har.capture (you will have to restart the protection).

  5. Now reproduce the problem — open the app, perform the necessary actions to make the ad appear.

  6. Now turn pref.har.capture off again.

  7. Go back and tap Export logs and system infoSave.

Windows 系统

  1. Open Settings*General settingsAdvanced settings and scroll down.

  2. Check the Enable HAR writing box.

  3. Reproduce the problem.

  4. Go to General settings → Click Export logsSave.

  5. Disable HAR writing by unchecking the corresponding box.