Skip to content

Commit f5cf69a

Browse files
authored
Merge pull request #101087 from mgblythe/mb-0110-browser-trace-02
Browser trace article (new PR)
2 parents b94f3d8 + 249c81c commit f5cf69a

28 files changed

+172
-0
lines changed

articles/azure-portal/TOC.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,13 @@
5454
href: supportability/classic-deployment-model-quota-increase-requests.md
5555
- name: Increase networking limits
5656
href: supportability/networking-quota-requests.md
57+
- name: Troubleshoot Azure portal issues
58+
items:
5759
- name: Troubleshoot region or SKU subscription issues
5860
href: supportability/sku-series-unavailable.md
61+
- name: Capture a browser trace for troubleshooting
62+
href: capture-browser-trace.md
63+
5964
- name: Reference
6065
items:
6166
- name: Keyboard shortcuts
Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
1+
---
2+
title: Capture a browser trace for troubleshooting | Microsoft Docs
3+
description: Capture network information from a browser trace to help troubleshoot issues with the Azure portal.
4+
services: azure-portal
5+
keywords:
6+
author: mblythe
7+
ms.author: mblythe
8+
ms.date: 01/09/2020
9+
ms.topic: troubleshooting
10+
11+
ms.service: azure-portal
12+
manager: mtillman
13+
---
14+
15+
# Capture a browser trace for troubleshooting
16+
17+
If you're troubleshooting an issue with the Azure portal, and you need to contact Microsoft support, we recommend you first capture a browser trace and some additional information. The information you collect can provide important details about the portal at the time the issue occurs. Follow the steps in this article for the developer tools in the browser you use: Google Chrome or Microsoft Edge (Chromium), Microsoft Edge (EdgeHTML), or Apple Safari.
18+
19+
## Google Chrome and Microsoft Edge (Chromium)
20+
21+
Google Chrome and Microsoft Edge (Chromium) are both based on the [Chromium open source project](https://www.chromium.org/Home). The following steps show how to use the developer tools, which are very similar in the two browsers. For more information, see [Chrome DevTools](https://developers.google.com/web/tools/chrome-devtools) and [Microsoft Edge (Chromium) Developer Tools](/microsoft-edge/devtools-guide-chromium).
22+
23+
1. Sign in to the [Azure portal](https://portal.azure.com). It's important to sign in _before_ you start the trace so that the trace doesn't contain sensitive information related to your sign-in.
24+
25+
1. Start recording the steps you take in the portal, using [Steps Recorder](https://support.microsoft.com/help/22878/windows-10-record-steps).
26+
27+
1. In the portal, navigate to the step just prior to where the issue occurs.
28+
29+
1. Press F12 or select ![Screenshot of browser settings icon](media/capture-browser-trace/chromium-icon-settings.png) > **More tools** > **Developer tools**.
30+
31+
1. 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 requires going to more than one page:
32+
33+
1. Select the **Network** tab, then select **Preserve log**.
34+
35+
![Screenshot of "Preserve log"](media/capture-browser-trace/chromium-network-preserve-log.png)
36+
37+
1. Select the **Console** tab, select **Console settings**, then select **Preserve Log**. Select **Console settings** again to close the settings pane.
38+
39+
![Screenshot of "Preserve Log"](media/capture-browser-trace/chromium-console-preserve-log.png)
40+
41+
1. Select the **Network** tab, then select **Stop recording network log** and **Clear**.
42+
43+
![Screenshot of "Stop recording network log" and "Clear"](media/capture-browser-trace/chromium-stop-clear-session.png)
44+
45+
1. Select **Record network log**, then reproduce the issue in the portal.
46+
47+
![Screenshot of "Start profiling session"](media/capture-browser-trace/chromium-start-session.png)
48+
49+
You will see session output similar to the following image.
50+
51+
![Screenshot of browser trace results](media/capture-browser-trace/chromium-browser-trace-results.png)
52+
53+
1. After you have reproduced the unexpected portal behavior, select **Stop recording network log**, then select **Export HAR** and save the file.
54+
55+
![Screenshot of "Export HAR"](media/capture-browser-trace/chromium-network-export-har.png)
56+
57+
1. Stop Steps Recorder, and save the file.
58+
59+
1. Back in the browser developer tools pane, select the **Console** tab. Right-click, then select **Save as...**, and save the console output to a text file.
60+
61+
![Screenshot of console output](media/capture-browser-trace/chromium-console-select.png)
62+
63+
1. Package the HAR file, console output, and screen recording in a compressed format like .zip, and share that with Microsoft support.
64+
65+
## Microsoft Edge (EdgeHTML)
66+
67+
The following steps show how to use the developer tools in Microsoft Edge (EdgeHTML). For more information, see [Microsoft Edge (EdgeHTML) Developer Tools](/microsoft-edge/devtools-guide).
68+
69+
1. Sign in to the [Azure portal](https://portal.azure.com). It's important to sign in _before_ you start the trace so that the trace doesn't contain sensitive information related to your sign-in.
70+
71+
1. Start recording the steps you take in the portal, using [Steps Recorder](https://support.microsoft.com/help/22878/windows-10-record-steps).
72+
73+
1. In the portal, navigate to the step just prior to where the issue occurs.
74+
75+
1. Press F12 or select ![Screenshot of browser settings icon](media/capture-browser-trace/edge-icon-settings.png) > **More tools** > **Developer tools**.
76+
77+
1. 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 requires going to more than one page:
78+
79+
1. Select the **Network** tab, then clear the option **Clear entries on navigate**.
80+
81+
![Screenshot of "Clear entries on navigate"](media/capture-browser-trace/edge-network-clear-entries.png)
82+
83+
1. Select the **Console** tab, then select **Preserve Log**.
84+
85+
![Screenshot of "Preserve Log"](media/capture-browser-trace/edge-console-preserve-log.png)
86+
87+
1. Select the **Network** tab, then select **Stop profiling session** and **Clear session**.
88+
89+
![Screenshot of "Stop profiling session" and "Clear session"](media/capture-browser-trace/edge-stop-clear-session.png)
90+
91+
1. Select **Start profiling session**, then reproduce the issue in the portal.
92+
93+
![Screenshot of "Start profiling session"](media/capture-browser-trace/edge-start-session.png)
94+
95+
You will see session output similar to the following image.
96+
97+
![Screenshot of browser trace results](media/capture-browser-trace/edge-browser-trace-results.png)
98+
99+
1. After you have reproduced the unexpected portal behavior, select **Stop profiling session**, then select **Export as HAR** and save the file.
100+
101+
![Screenshot of "Export as HAR"](media/capture-browser-trace/edge-network-export-har.png)
102+
103+
1. Stop Steps Recorder, and save the file.
104+
105+
1. 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. Right-click, then select **Copy**, and save the console output to a text file.
106+
107+
![Screenshot of console output](media/capture-browser-trace/edge-console-select.png)
108+
109+
1. Package the HAR file, console output, and screen recording in a compressed format like .zip, and share that with Microsoft support.
110+
111+
## Apple Safari
112+
113+
The following steps show how to use the developer tools in Apple Safari. For more information, see [Safari Developer Tools overview](https://support.apple.com/guide/safari-developer/safari-developer-tools-overview-dev073038698/11.0/mac).
114+
115+
1. Enable the developer tools in Apple Safari:
116+
117+
1. Select **Safari**, then select **Preferences**.
118+
119+
![Screenshot of Safari preferences](media/capture-browser-trace/safari-preferences.png)
120+
121+
1. Select the **Advanced** tab, then select **Show Develop menu in menu bar**.
122+
123+
![Screenshot of Safari advanced preferences](media/capture-browser-trace/safari-show-develop-menu.png)
124+
125+
1. Sign in to the [Azure portal](https://portal.azure.com). It's important to sign in _before_ you start the trace so that the trace doesn't contain sensitive information related to your sign-in.
126+
127+
1. Start recording the steps you take in the portal. For more information, see [How to record the screen on your Mac](https://support.apple.com/HT208721).
128+
129+
1. In the portal, navigate to the step just prior to where the issue occurs.
130+
131+
1. Select **Develop**, then select **Show Web Inspector**.
132+
133+
![Screenshot of "Show Web Inspector"](media/capture-browser-trace/safari-show-web-inspector.png)
134+
135+
1. 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 requires going to more than one page:
136+
137+
1. Select the **Network** tab, then select **Preserve Log**.
138+
139+
![Screenshot of "Preserve Log"](media/capture-browser-trace/safari-network-preserve-log.png)
140+
141+
1. Select the **Console** tab, then select **Preserve Log**.
142+
143+
![Screenshot of "Preserve Log"](media/capture-browser-trace/safari-console-preserve-log.png)
144+
145+
1. Select the **Network** tab, then select **Clear Network Items**.
146+
147+
![Screenshot of "Clear Network Items"](media/capture-browser-trace/safari-clear-session.png)
148+
149+
1. Reproduce the issue in the portal. You will see session output similar to the following image.
150+
151+
![Screenshot of browser trace results](media/capture-browser-trace/safari-browser-trace-results.png)
152+
153+
1. After you have reproduced the unexpected portal behavior, select **Export** and save the file.
154+
155+
![Screenshot of "Export"](media/capture-browser-trace/safari-network-export-har.png)
156+
157+
1. Stop the screen recorder, and save the file.
158+
159+
1. 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.
160+
161+
![Screenshot of console output](media/capture-browser-trace/safari-console-select.png)
162+
163+
1. Package the HAR file, console output, and screen recording in a compressed format like .zip, and share that with Microsoft support.
164+
165+
## Next steps
166+
167+
[Azure portal overview](azure-portal-overview.md)
26.7 KB
Loading
14.1 KB
Loading
16.2 KB
Loading
419 Bytes
Loading
6.45 KB
Loading
6.43 KB
Loading
6.04 KB
Loading
6.46 KB
Loading

0 commit comments

Comments
 (0)