How to debug RavenDB through fiddler using NServiceBus

This is mostly a note to self since I always seems to forget how to do it:)

To setup a NServiceBus endpoint to make all calls to RavenDB through fiddler you need to do the following:

Configure the proxy for your endpoint by adding the following to your app.config

1 2 3 4 5
<system.net>
<defaultProxy>
<proxy usesystemdefault="False" bypassonlocal="True" proxyaddress="http://127.0.0.1:8888"/>
</defaultProxy>
</system.net>
view raw proxy.xml This Gist brought to you by GitHub.

With the proxy setup we just need to change the Raven connection string to go through fiddler by adding:

1 2 3
<connectionStrings>
<add name="NServiceBus.Persistence" connectionString="url=http://localhost.fiddler:8080"/>
</connectionStrings>

That should be it, happy debugging!

This entry was posted in NServiceBus. Bookmark the permalink. Both comments and trackbacks are currently closed.