Friday, May 20, 2011

Use Fiddler with the Windows Phone 7 emulator

If you didn’t know it yet, I’ve build my own WP7 application. As I’m using oData in the backend, Fiddler is an invaluable tool that helps me debugging all the web traffic. However there is one problem, Fiddler doesn’t seem to work with the Windows Phone 7 emulator.

I solved the problem by executing following steps mentioned on Eric Laws blog:

  1. Start Fiddler.
  2. Click Tools > Fiddler Options.
  3. Open the Connections tab and tick the Allow remote computers to connect box
  4. Click OK to close the Fiddler Options dialog.
  5. In the QuickExec box under the session list, type prefs set HostName where HostName is the name of your desktop computer.
  6. Close and restart Fiddler.
  7. Start (or restart) the Windows Phone 7 Emulator.
  8. Open Internet Explorer on the Emulator.
  9. Observe, your traffic shows in Fiddler.

No comments: