is it possible to have fiddler always display the last session

187 views
Skip to first unread message

SunWuKung

unread,
Jun 17, 2009, 3:14:07 AM6/17/09
to Fiddler
Is it possible to have fiddler always display the last session for
inspection?
It has very nice filters so I can have it display only the sessions I
need, but then it would be very useful if I didn't always have to
click on the last session to inspect but it could go there
automatically.

I thought that View/Autoscroll would do that but it seems it doesn't -
I couldn't find out what it does.
Thx.
SWK

EricLaw

unread,
Jun 17, 2009, 5:27:43 PM6/17/09
to Fiddler
View>Autoscroll scrolls the most recent session into view. It doesn't
actually select it.

If you want to select it, the simplest approach is to do the
following: click Rules > Customize Rules. Scroll to OnBeforeRequest
and add the following line just inside the function:

oSession.oFlags["x-Builder-Activate"] = "1";

Note, of course, that this could get really irritating.

Barlow

unread,
Jun 30, 2009, 7:41:07 AM6/30/09
to Fiddler
And, how to have the scroll list displays the latest several ( ex.
5 ) sessions always?
> > SWK- 隐藏被引用文字 -
>
> - 显示引用的文字 -

EricLaw

unread,
Jun 30, 2009, 10:01:04 AM6/30/09
to Fiddler
I don't understand the question. If "AutoScroll" is enabled, then
Fiddler will typically scroll to the latest sessions /unless/ you've
scrolled the session list to some other session at some point. If you
want to turn off the feature where autoscroll is disabled if the list
was scrolled up, click Tools / Fiddler Options / Appearance, and
uncheck "Use SmartScroll in Session List."

-Eric
> > - 显示引用的文字 -- Hide quoted text -
>
> - Show quoted text -

Barlow

unread,
Jun 30, 2009, 10:11:10 AM6/30/09
to Fiddler
sorry, Eric, maybe it is an other question.

What I want is to delete all sessions but last 5.
> > - Show quoted text -- 隐藏被引用文字 -
>
> - 显示引用的文字 -

EricLaw

unread,
Jun 30, 2009, 11:58:02 AM6/30/09
to Fiddler
Ah. This is called "trimming" the session list. See the "Trim"
option at the bottom of the Filters tab, or see the Rules > Customize
Rules script.

-Eric

Dieter Collijs

unread,
Dec 14, 2015, 9:59:28 AM12/14/15
to Fiddler
Hello Eric,

Can this still be achieved in the latest version of Fiddler?
I've tried using the solution you suggested but without any luck.

Thanks
Dieter

EricLaw

unread,
Dec 14, 2015, 1:30:24 PM12/14/15
to Fiddler
Dieter--

Nothing should have changed here. Please explain exactly what you wish to have happen, what exactly you've done, and what exactly you see when you do that.

thanks!

Dieter Collijs

unread,
Dec 15, 2015, 2:30:59 AM12/15/15
to Fiddler
Hello Eric,

I have a service that's returning images over http which I can check with fiddler.
I've got an app that is calling the service with random data to see how the service responds.
What I'd like to do is put this app together with fiddler on a machine and show the imageview of fiddler on the screen.
It'd be great if the last request is always selected so I can see the image changing.

So I'm trying to achieve that fiddler automatically focuses on the last request.
Following your previous comment above, i've added the following line inside the OnBeforeRequest function: 
oSession.oFlags["x-Builder-Activate"] = "1";
I then restarted fiddler.

However this doesn't seem to work for me.

Regards
Dieter

EricLaw

unread,
Dec 15, 2015, 2:54:22 PM12/15/15
to Fiddler
Inside OnBeforeResponse add the following:

            if (oSession.oResponse.MIMEType.StartsWith("image/"))
            {
                oSession.oFlags["x-Builder-Inspect"] = "Yup"; 
            }

Of course, this code has the effect that every single time a new image comes in it activates the Inspectors for that image, which is pretty distracting and may not be what you really want.

Have you had a look at Fiddler's Gallery extension? It's meant for looking at large quantities of images...

Dieter Collijs

unread,
Dec 16, 2015, 2:45:35 AM12/16/15
to Fiddler
Hello Eric,

Thanks for the response. Adding it to the OnBeforeResponse seems to do the trick, however it has some delay when large number of requests are being captured.
I did not know there are extensions for fiddler, i'll have a look at them.
Reply all
Reply to author
Forward
0 new messages