For PowerBI-Fiddler, I wanted to re-use the JSONResponseViewer that Fiddler uses for their “JSON” inspector. I used JustDecompile to decompile Fiddler.exe and discovered that the default inspectors are located in this DLL: C:\Program Files (x86)\Fiddler2\Inspectors\Standard.dll. The JSONResponseViewer is sealed, so you have to use a composition pattern instead of inheritance. You can see an example here: https://github.com/jonbgallant/PowerBIFiddler/blob/master/PowerBIFiddler/TileDataViewer.cs
Fiddler searches %userprofile%\Documents\Fiddler2\Inspectors and C:\Program Files (x86)\Fiddler2\Inspectors for Inspectors when it launches. You’ll want to copy your custom Inspectors into either of those folders. I setup the following Post-build event to automatically copy the DLL over after each build.
To get F5 debugging, you’ll want to set your Start Action to Fiddler.exe, like this:
You’ll find a bunch of good examples here: http://www.telerik.com/fiddler/add-ons. You can install them and then use JustDecompile to see how they were built.
- Fiddler Extensions on Codeplex: https://www.codeplex.com/site/search?query=fiddler&ac=2
- Fiddler Extensions on GitHub: https://github.com/search?utf8=%E2%9C%93&q=fiddler+extension&type=Repositories&ref=searchresults
- Fiddler Extension Docs: http://docs.telerik.com/fiddler/extend-fiddler/extendwithdotnet