Using Fiddler to Debug Windows Phone 7 Emulator

I recently started using the updated beta tools for Windows Phone 7 and ran into an interesting problem. It seems that when you start Fiddler, any Http requests that run through the emulator start returning a null result and throw a "not found" web exception. This is easy to reproduce using WebClient.DownloadStringAsync (). Older versions of the emulator did work with Fiddler, if I remember correctly. Is anyone really lucky to work together? If this were not possible, I would be open to any other tool that could help debug web requests from the WP7 emulator.

+6
debugging windows-phone-7 fiddler
source share
2 answers

There seems to be a message that describes how fiddler works with Win Phone 7 through some custom rules for setting up Fiddler as a reverse proxy .

Here are a few instructions on the violinistโ€™s website, but the blog post seems a little understandable (sorry for the stupid format, the block quote doesn't work):

Option # 1: Configure the Violinist as a Reverse-Proxy Fiddler can be configured so that any traffic sent to http://127.0.0.1:8888 is automatically sent to another port on the same machine. To install this configuration:

Run REGEDIT Create a new DWORD named ReverseProxyForPort inside HKCU \ SOFTWARE \ Microsoft \ Violinist

Install DWORD in the local port that you want to redirect incoming traffic to (usually port 80 for a standard HTTP server) Restart Fiddler Go to your browser http://127.0.0.1:8888

Option # 2: Write a FiddlerScript Rule In addition, you can write a rule that does the same.

Suppose you are using a website on port 80 of a machine named WEBSERVER. You connect to the website using Internet Explorer Mobile Edition on a Windows SmartPhone device for which you cannot configure a web proxy. You want to capture traffic from the phone and server response.

Run Fiddler on a WEBSERVER machine running on the default port of 8888. Click "Tools" | Settings cheater and check the box "Allow remote access." clients for connection "is checked. Restart if necessary. select Rules | Configure rules. Inside OnBeforeRequest handler will add a new line of code: if (oSession.host.toLowerCase () ==" web server: 8888 ") oSession.host =" Web server: 80 "; On the smartphone, go to http: // webserver: 8888 Requests from the SmartPhone will appear in Fiddler. Requests are forwarded from port 8888 to port 80 where the web server is running. Responses are sent back through the Violinist to the smartphone, I donโ€™t know that the original content came from port 80.

+2
source share

I can't get Fiddler to track traffic, so I use WireShark, which works great.

+1
source share

All Articles