Console truncating long log messages

2,474 views
Skip to first unread message

Nicholas H

unread,
Apr 5, 2012, 12:54:40 PM4/5/12
to fir...@googlegroups.com
Hello,

I'm using the latest Firebug with Firefox, and seeing an issue, where long console.log messages get truncated, with ellipsis's placed in the center of the long message. There is no way to expand the text as far as I can tell when it's in this state. I can right-click and say "Inspect in DOM tab", which then takes me to an array view that I can expand and see all the text, but this is less than ideal.

Is anyone else experiencing this issue? Is there a workaround? Thanks in advance.

Jan Honza Odvarko

unread,
Apr 5, 2012, 1:51:36 PM4/5/12
to Firebug
I just tried console.log(string) where string has 4320 characters and
the result isn't cropped.
Could you provide a test page with a description?

Honza

Sebo

unread,
Apr 6, 2012, 2:12:55 AM4/6/12
to fir...@googlegroups.com
Maybe issue 4864 is meant here?

Sebastian

Nicholas H

unread,
Apr 6, 2012, 10:35:05 AM4/6/12
to fir...@googlegroups.com
I feel silly. I didn't think to include I was actually console.log'ing an array (which contains just one string).

Still, shouldn't an array like that have it's text be "expandable", still?

Example:

console.log('test msg kinda long but gets the point across and such and it shouldnt show ellipsises after a certain point in my test.');
var ary = new Array('test msg kinda long but gets the point across and such and it shows ellipsises after a certain point in my test.');          
console.log(ary);

The first line works great. The second line is always truncated, though, with no easy way to expand it.

Jan Honza Odvarko

unread,
Apr 7, 2012, 1:50:31 AM4/7/12
to Firebug
On Apr 6, 4:35 pm, Nicholas H <nicholas.h...@hireahelper.com> wrote:
> I feel silly. I didn't think to include I was actually console.log'ing an
> array (which contains just one string).
>
> Still, shouldn't an array like that have it's text be "expandable", still?
>
> Example:
>
> console.log('test msg kinda long but gets the point across and such and it
> shouldnt show ellipsises after a certain point in my test.');
> var ary = new Array('test msg kinda long but gets the point across and such
> and it shows ellipsises after a certain point in my test.');
> console.log(ary);
>
> The first line works great. The second line is always truncated,
Yep, now I can see the problem

> though, with no easy way to expand it.
Any suggestions for how the UI/UX should look like?

Also, I think that another bug is:
1) Click on the log output in the Console panel
2) The DOM panel is selected but empty -> BUG
3) The DOM panel should display the array items

Honza

Sebo

unread,
Apr 16, 2012, 8:23:16 AM4/16/12
to fir...@googlegroups.com
Any suggestions for how the UI/UX should look like?
Add a twisty? See issue 5382.

Also, I think that another bug is:
1) Click on the log output in the Console panel
2) The DOM panel is selected but empty -> BUG
3) The DOM panel should display the array items
The output of the example above just contains text. So clicking it doesn't do anything.

Sebastian

Nicholas H

unread,
Apr 16, 2012, 10:47:34 AM4/16/12
to fir...@googlegroups.com
I think it should work similar to how a standalone string "log" entry is shown-- clicking the text expands it. But there may be other considerations/downfalls to this method I'm not aware of.
Reply all
Reply to author
Forward
0 new messages