On Apr 18, 5:26 pm, Tomasz Wegrzanowski
<[email protected]> wrote:
> One thing that has bothered me about Firebug is how it prints small
> objects.
>
> Let's say I do this in firebug console:
>
> >>> document.getElementsByTagName("div")[0].getBoundingClientRect()
>
> What I get is fairly useless:
> ClientRect { constructor=ClientRect,  more...}
>
> on which I need to click to get to the DOM tab and see the values. If
> I'm trying to see such objects for a few elements, this constant
> switching between console tab and dom tab gets really annoying.
>
> Is there any reason why firebug couldn't just display all fields of an
> object if they're simple and not too numerous?
>
> (this issue isn't unique to ClientRect, such small objects are fairly
> widespread in many javascript contexts; there's no need to pursue the
> most general possible solution which might be difficult, just to make
> simple cases work)

This display seems to be controlled by shortPropIterator:
http://code.google.com/p/fbug/source/browse/branches/firebug1.6/content/firebug/reps.js#356
Currently it only prints one property. I'll investigate setting to a
larger value.

jjb

>
> --
> You received this message because you are subscribed to the Google Groups 
> "Firebug" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group 
> athttp://groups.google.com/group/firebug?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en.

Reply via email to