This is a migrated thread and some comments may be shown as answers.

Custom Inspector Never Appears

3 Answers 227 Views
Extensions and Customization
This is a migrated thread and some comments may be shown as answers.
Jesse
Top achievements
Rank 1
Jesse asked on 18 Apr 2015, 05:16 PM

I'm trying to write a response inspector, and after trying numerous things, I can't get it to appear on the Inspectors tab.

I've tried this basic test, and it doesn't seem to get loaded into Fiddler:

using System.Windows.Forms;
using Fiddler;
 
[assembly: RequiredVersion("2.3.0.0")]
 
namespace Test
{
    public class TestInspector : Inspector2, IResponseInspector2
    {
        public override void AddToTab(TabPage o)
        {
            o.Text = "TestInspector";
        }
 
        public override int GetOrder()
        {
            return 0;
        }
 
        public void Clear()
        { }
 
        public byte[] body { get; set; }
        public bool bDirty { get; private set; }
        public bool bReadOnly { get; set; }
        public HTTPResponseHeaders headers { get; set; }
    }
}

I've compiled this against Fiddler 4.5.0.0 and 2.5.0.0, and tried loading it into both. Neither seems to work.

I know that my dll is being loaded by Fiddler though. If I add this to the DLL, my Message Box appears while the application is loading.

public class TestExtention : IFiddlerExtension
{
    public void OnLoad()
    {
        MessageBox.Show("Hello Fiddler!");
    }
 
    public void OnBeforeUnload()
    {}
}

I've even tried compiling / loading inspectors I've found on codeplex, but none of them seem to work.

Any help would be greatly appreciated.

3 Answers, 1 is accepted

Sort by
0
Eric Lawrence
Telerik team
answered on 20 Apr 2015, 02:53 PM
Hello, Jesse--

Based on the behavior you describe, the most likely explanation is that your assembly isn't placed in the correct folder. It needs to be in the Inspectors folder (from which Inspectors are loaded), not the Scripts folder (where IFiddlerExtensions are loaded).

When building Inspectors or extensions, you should type the following in the QuickExec box below the Web Sessions list:

   prefs set fiddler.debug.extensions.showerrors True

And hit enter, then type

   prefs set fiddler.debug.extensions.verbose True

Hit enter, and restart Fiddler.

Subsequently, Fiddler's LOG tab will show much more information about the loading of Inspectors and other extensions. 

Tip: You should also bump your RequiredVersion to 2.4.9.0 or ideally 2.5.0.0 unless you really plan on testing it against the ancient and unsupported v2.3.

All the best,
Eric Lawrence
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
corey
Top achievements
Rank 1
answered on 30 Apr 2018, 02:41 PM
I suffer the same problem and I am sure that the .dll file is placed in the Inspectors folder. But nothing happened in fiddler, no error and no page. I do not know what happen and how to fix it.
0
Alexander
Telerik team
answered on 14 May 2018, 03:10 PM
Hello,

Have you checked the official documentation about writing custom inspectors - link?

Regards,
Alexander
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Extensions and Customization
Asked by
Jesse
Top achievements
Rank 1
Answers by
Eric Lawrence
Telerik team
corey
Top achievements
Rank 1
Alexander
Telerik team
Share this question
or