How to generate a HAR file

Platí pre podnik a tímy.

Applies to

Adobe teams and enterprise customers.

Purpose

Generating a HAR file would be helpful if you need detailed information about network requests within the customer's browser for troubleshooting. This article helps you know how to generate a HAR file in Chrome, Firefox, Edge, and Safari.

Poznámka:

The screenshots below show the DevTools in Focus Mode with a vertical Activity Bar. Depending on your settings, your configuration may look different. For more information, see Simplify DevTools using Focus Mode.

Google Chrome

The following steps show how to use the developer tools in Google Chrome. For more information, see Chrome DevTools.

  1. In the Chrome browser, navigate to the step prior to where the issue occurs.

  2. Press F12 to launch the developer tools. You can also launch the tools from the toolbar menu under More tools > Developer tools.

  3. By default, the browser keeps trace information only for the page that's currently loaded. Set the following options so the browser keeps all trace information, even if your repro steps require going to more than one page:

    1. Select the Console tab, select Console settings, then select Preserve Log.

      Screenshot that highlights the Preserve log option on the Console tab in Chrome.

    2. Select the Network tab, then select Preserve log.

      Screenshot that highlights the Preserve log option on the Network tab in Chrome.

  4. On the Network tab, select Stop Recording network log and Clear.

  5. Select Record network log, then reproduce the issue in the browser.

    Screenshot that shows how to record the network log in Chrome.

    You'll see a session output similar to the following image.

    Screenshot that shows the session output in Chrome.

  6. After you have reproduced the unexpected behavior, select Stop Recording network log, then select Export HAR and save the file.

    Screenshot that shows how to Export HAR on the Network tab in Chrome.

  7. Back in the browser developer tools pane, select the Console tab. Right-click one of the messages, then select Save as..., and save the console output to a text file.Screenshot that shows how to save the console output in Chrome.

  8. Package the browser trace HAR file, and console output, in a compressed format such as .zip.

  9. Attach the compressed file to the support ticket.

Safari

The following steps show how to use the developer tools in Apple Safari on Mac. For more information, see Safari Developer Tools overview.

  1. Enable the developer tools in Safari:

    1. Select Safari, then select Preferences.

    2. Select the Advanced tab, then select Show Develop menu in the menu bar.

      Screenshot of the Safari advanced preferences options.

  2. In the browser, navigate to the step prior to where the issue occurs.

  3. Select Develop, then select Show Web Inspector.

  4. By default, the browser keeps trace information only for the page that's currently loaded. Set the following options so the browser keeps all trace information, even if your repro steps require going to more than one page:

    1. Select the Console tab, then select Preserve Log.

      Screenshot that shows the Preserve Log on the Console tab.

    2. Select the Network tab, then select Preserve Log.

      Screenshot that shows the Preserve Log option on the Network tab.

  5. On the Network tab, select Clear Network Items.

  6. Reproduce the issue in the browser. You'll see a session output similar to the following image.

    Screenshot that shows the output after you've reproduced the issue.

  7. After you have reproduced the unexpected behavior, select Export and save the file.

  8. Back in the browser developer tools pane, select the Console tab and expand the window. Place your cursor at the start of the console output then drag and select the entire contents of the output. Use Command-C to copy the output and save it to a text file.

    Screenshot that shows where you can view and copy the console output.

  9. Package the browser trace HAR file, console output, and screen recording files in a compressed format such as .zip.

  10.  

    Attach the compressed file to the support ticket.

     

Firefox

The following steps show how to use the developer tools in Firefox. For more information, see Firefox Developer Tools.

  1. In the browser, navigate to the step prior to where the issue occurs.

  2. Press F12 to launch the developer tools. You can also launch the tools from the toolbar menu under More tools > Web developer tools.

  3. By default, the browser keeps trace information only for the page that's currently loaded. Set the following options so the browser keeps all trace information, even if your repro steps require going to more than one page:

    1. Select the Console tab, select the Settings icon, and then select Persist Logs.

      Screenshot of the Console setting for Persist Logs.

    2. Select the Network tab, select the Settings icon, and then select Persist Logs.

      Screenshot of the Network setting for Persist Logs.

  4. On the Network tab, select Clear.

  5. Reproduce the issue in the browser. You'll see session output similar to the following image.

    Screenshot showing example browser trace results.

  6. After you have reproduced the unexpected behavior, select Save All As HAR.

  7. Back in the browser developer tools pane, select the Console tab. Right-click one of the messages, then select Save All Messages to File, and save the console output to a text file.Screenshot of the Save All Messages to File command on the Console tab.

  8. Package the browser trace HAR file, console output, and screen recording files in a compressed format such as .zip.

  9. Attach the compressed file to the support ticket.

Microsoft Edge

The following steps show how to use the developer tools in Microsoft Edge. For more information, see Microsoft Edge DevTools.

  1. In the browser, navigate to the step prior to where the issue occurs.

  2. Press F12 to launch Microsoft Edge DevTools. You can also launch the tools from the toolbar menu under More tools > Developer tools.

  3. By default, the browser keeps trace information only for the page that's currently loaded. Set the following options so the browser keeps all trace information, even if your repro steps require going to more than one page.

    1. Select the Console tab, select Console settings, then select Preserve Log.

      Screenshot that highlights the Preserve log option on the Console tab in Edge.

    2. Select the Network tab. If that tab isn't visible, click the More tools (+) button and select Network. Then, from the Network tab, select Preserve log.

      Screenshot that highlights the Preserve log option on the Network tab in Edge.

  4. On the Network tab, select Stop Recording network log and Clear.

    Screenshot showing the Stop recording network log and Clear options on the Network tab in Edge.

  5. Select Record network log, then reproduce the issue in the portal.

    Screenshot showing how to record the network log in Edge.

    You'll see session output similar to the following image.

    Screenshot showing session output in Edge.

  6. After you have reproduced the unexpected portal behavior, select Stop Recording network log, then select Export HAR and save the file.

    Screenshot showing how to Export HAR on the Network tab in Edge.

  7. Back in the browser developer tools pane, select the Console tab. Right-click one of the messages, then select Save as..., and save the console output to a text file.Sccreenshot showing how to save the console output in Edge.

  8. Package the browser trace HAR file, console output, and screen recording files in a compressed format such as .zip.

  9. Attach the compressed file to the support ticket.

Získajte pomoc rýchlejšie a ľahšie

Nový užívateľ?