Capture HTTP and HTTPS sessions for debugging using Fiddler
Fiddler is a free web debugging proxy that logs all HTTP/HTTPS traffic between your web application and the Internet. You can download Fiddler from the Telerik official site.
Capturing session data with Fiddler can be useful for troubleshooting scenarios such as:
- When no user actions are captured for your application, the RUM JavaScript isn't injected, and the beacon signal isn't sent back.
- When a JavaScript error caused by the RUM JavaScript affects your application.
- In case of missing user actions, for example, a special interaction with the application.
You can upload exported Fiddler sessions to your organization's incident management system to facilitate issue resolution.
Create an HTTP session
You can use Fiddler to create an HTTP session of the monitored web application.
-
In Fiddler, go to Tools > Fiddler Options > HTTPS.
-
Select Capture HTTPS CONNECTs and Decrypt HTTPS traffic.
-
Go to File > Capture Traffic or press F12 to turn off capturing. Clear your browser's cache so that all cached items are removed and downloaded again.
-
Go to File > Capture Traffic or press F12 to start capturing traffic again.
-
Reproduce the problem scenario to demonstrate that the issue occurred within your application. Make sure the affected page is fully reloaded after restarting traffic capture.
-
When done, go to File > Save > All Sessions.
-
In Fiddler, go to Settings > Wi-Fi > Modify Network.
-
Set Fiddler as the Wi-Fi proxy, as shown below. Add your machine's IP address as the Proxy hostname and the port that Fiddler listens on as the Proxy port.
To find the port that Fiddler listens on, go to Tools > Fiddler Options > Connections. Use the value from the Fiddler listens on port field. To find your workstation IP and the proxy port via the command line, run
ipconfig
on Windows orifconfig
on Linux. -
optional If your application uses SSL certificates, add the Fiddler certificate to your device.
-
Go to Tools > Fiddler Options > HTTPS > Actions > Export Root Certificate to Desktop to obtain the Fiddler certificate.
-
Save the exported certificate, which is usually named
FiddlerRoot.cer
, on your Android device by going to Settings > Security > Install from SD card. You should then see the certificate in the USER tab of Trusted credentials.
-
-
Go to File > Capture Traffic or press F12 to turn off capturing. Clear your browser's cache so that all cached items are removed and downloaded again.
-
Go to File > Capture Traffic or press F12 to start capturing traffic again.
-
Reproduce the problem scenario to demonstrate that the issue occurred within your application. Make sure the affected page is fully reloaded after restarting traffic capture.
-
When done, go to File > Save > All Sessions.