Update: The information in this post is no longer relevant, the Windows Phone tools and Fiddler work well together now.
If you’re reading this you’re probably wondering why Fiddler no longer works with the WP7 emulator. I can’t answer that question, the beta release made a change that stopped it from working, however explained below is a workaround.
Before you read the rest
- You will need 2 computers
- This works but it’s not ideal because it means routing all your traffic through a proxy (the second computer). However it’s simple to setup and stop & will do until the Emulator works as expected again (I’m guessing that it will)
The solution
Those that know fiddler well will have worked it out the moment I said proxy. For the rest of you, follow these steps:
- Install fiddler on your second PC
- Go to Tools > Fiddler Options > Connection
- Check the box Allow remote computers to connect
- Restart fiddler, allow connections through Windows Firewall when prompted.
On your dev machine:
- Open Internet Explorer > Tools > Internet Options > Connections, click LAN settings
- Check Use a proxy server for your LAN
- Enter the IP address of your Fiddler machine, and the port number, unless you changed this in fiddler it’s 8888, click ok
- Fire up VS and launch your project in the emulator
- WIN!!! You should now see all your web requests captured and can be fiddled as normal
Hopefully this will make things easier, especially for those of us coding against dodgy API’s that seem to fall over all the time.
Goes without saying really, but don’t forget to remove this setting in Internet Explorer whenever fiddler is not running or you’ll lose all access to the internet.