Up Test, log, and debug
DevForce 2010 Resource Center » DevForce development » Test, log, and debug » DevForce Fiddler debugger extension

DevForce Fiddler debugger extension

Last modified on December 21, 2012 16:17

A Fiddler extension to inspect network traffic in an n-tier DevForce application.

DevForce sends compressed binary messages between the EntityManager and the EntityServer.  You can use this extension to inspect these messages, to help when debugging your n-tier and Silverlight applications.


  1. Unzip the DevForceFiddlerExtensionbin.zip file and drop the DevForceFiddlerExtension.dll into the appropriate Fiddler2\Inspectors folder:
    32-bit System:  %PROGRAMFILES%\Fiddler2\Inspectors
    64-bit System:  %PROGRAMFILES(x86)%\Fiddler2\Inspectors
  2. Launch Fiddler2.
  3. Run the application you're watching. If the EntityServer is running on LocalHost, see tip below.
  4. Select the Web Session you want to inspect. The URL of such sessions typically begins "/EntityServer.svc/...".

    Tip: If watching a browser session, you can drag the target icon from the Fiddler tool bar onto that browser; this will filter "web session" traffic to just that browser. Click the target icon again to remove the filter.
  5. Select the Inspectors tab in the right pane.
  6. Among Inspectors, select the Raw sub-tab of either the Request or Response pane. Notice that the material below the headers is unreadable. The payload is formatted as compressed binary in DevForce.
  7. Among Inspectors, select the DevForce sub-tab. The DevForce inspector reformats that payload as readable XML.  Below we see request and response snippets from a query (or Fetch operation in DevForce):

  8. The messages will seem overwhelming at first, since you'll see the entire WCF envelope and all the metadata DevForce passes with a message.  Once familiar with the message format, you'll be able to inspect what is passed between the client application and server.

Regarding traffic sent to http://localhost or

Internet Explorer and the .NET Framework are hardcoded not to send requests for Localhost through any proxies, and as a proxy, Fiddler will not receive such traffic. 

Update: This behavior was changed for Internet Explorer 9. IE9 allows Fiddler to proxy traffic sent to localhost or without additional steps on your part.

The simplest workaround is to use your machine name as the hostname instead of Localhost or So, for instance, rather than browsing to http://localhost:8081/mytestpage.aspx, instead enter the following in your browser address bar: http://machinename:8081/mytestpage.aspx.  

Alternatively, instead of: http://localhost:1234/MyApp/..., browse to http://localhost.:1234/MyApp/... (it's subtle, but notice the extra dot after localhost).

... or, just use http://ipv4.fiddler to hit localhost on the IPv4 adapter,
... or use http://ipv6.fiddler to hit localhost on the IPv6 adapter.  

This works especially well with the Visual Studio test webserver (codename: Cassini) because the test server only listens on the IPv4 loopback adapter.

Lastly, you could update your Fiddler Rules file like so:

static function OnBeforeRequest(oSession:Fiddler.Session){
   if (oSession.HostnameIs("MYAPP")) { oSession.host = ""; }

...and then just hit http://myapp.., which will act as an alias for

Note: You shouldn't ever encounter the "Localhost traffic not captured" problem with Firefox. The FiddlerHook add-on for Firefox removes "localhost" from the "bypass proxy" list when Fiddler is in "Capturing" mode.

Learn more

Documentation for building custom extensions, like this one, can be found here.  The source code for the DevForceFiddlerExtension is available for download from the link above.  You can modify it to suit your needs.

Created by DevForce on January 04, 2012 17:37

This wiki is licensed under a Creative Commons 2.0 license. XWiki Enterprise 3.2 - Documentation. Copyright © 2015 IdeaBlade