feature request: line wrap in the console

47 views
Skip to first unread message

Dyno Fu

unread,
Nov 26, 2006, 10:55:47 PM11/26/06
to Firebug
Joe,
thanx for this greate tool, it really help me a lot. a suggestion
for improvement. sometime if i wantta know all the properties of an
object, say document,
dir(document)
it will produce a longer line than the viewport can hold, and there
is no horizental scroll bars, so i am wondering if it is good to have a
line wrap option for the console.

rgds,
Dyno

Joe

unread,
Nov 26, 2006, 11:57:50 PM11/26/06
to Firebug
Hy Dyno,

This bug is fixed in the upcoming Firebug 1.0.

JB

unread,
Dec 13, 2006, 3:51:41 AM12/13/06
to Firebug

> > so i am wondering if it is good to have a line wrap option for the console.

> This bug is fixed in the upcoming Firebug 1.0.

Hello Joe,

I see this should be part of the latest beta release (5).
However, I'm not sure how this should work.
Is it only for things you "type" in the console?
Because my long lines produced with console.log() are still cut after a
specific length.

Sorry if I'm being blind and can't see how it should work.

Regards,
JB

Joe Hewitt

unread,
Dec 13, 2006, 3:55:38 AM12/13/06
to fir...@googlegroups.com
No, stuff produced by console.log() should wrap. Is there no white
space in the text you are logging?

- Joe

JB

unread,
Dec 13, 2006, 3:58:37 AM12/13/06
to Firebug

Joe Hewitt wrote:
> No, stuff produced by console.log() should wrap. Is there no white
> space in the text you are logging?

That was fast :-) Thanks.

That's right, there is no white space. I guess I'm stuck then :-)

Cheers,
JB

Joe Hewitt

unread,
Dec 13, 2006, 4:00:13 AM12/13/06
to fir...@googlegroups.com
I'm a little puzzled. I'm testing the heck out of this and
everything I log seems to wrap just fine. Are you sure the version
you've installed is beta 5?

JB

unread,
Dec 13, 2006, 6:09:19 AM12/13/06
to Firebug

Joe Hewitt wrote:
> I'm a little puzzled. I'm testing the heck out of this and
> everything I log seems to wrap just fine. Are you sure the version
> you've installed is beta 5?

Add-on panels shows Firebug with version 1.0b5 (and for instance,
Ctrl+click in the Firebug status bar icon opens Firebug in a new
window).

But after some investigation, I think I know what happens, and I also
think the issue is not on your side.

I have set a page example here:
http://gibee1.free.fr/tmp/consoleTest.htm

The issue occurs when logging from a function, using the implicit
parameter "arguments", and passing it directly to the console.log.
"arguments" is in fact an array, and long values are shortened for
display, probably internally by Firefox, even before console.log gets
to display it.

Regards,
JB

JB

unread,
Dec 13, 2006, 7:57:31 AM12/13/06
to Firebug

JB wrote:

> But after some investigation, I think I know what happens, and I also
> think the issue is not on your side.

Actually, maybe it is, since this was not truncated before Firebug 1.0
beta.

Cheers,
JB

JB

unread,
Dec 17, 2006, 4:25:11 AM12/17/06
to Firebug

Hello Joe,

I understand this is a minor issue that might not being fixed or even
considered a real bug.

Can you just tell me if you plan on fixing it or if I should think of
changing my code?

Regards,
JB

Joe

unread,
Dec 17, 2006, 4:37:22 AM12/17/06
to Firebug
Looking at your test, it seems that it does wrap, except that those
lines contain really long words without any white-space to break. I'll
see if I can add a horizontal scrollbar.

JB

unread,
Dec 17, 2006, 6:14:05 AM12/17/06
to Firebug
Actually when you give an array as a parameter to console.log, each
element of the array is really truncated.
In my example, the long output does wrap when outputed as a single
string, but it is truncated when outputed as a single element array.

The horizontal scrollbar solves a slightly different problem though,
but as it is now you do not loose any data, and can still copy-paste
the whole line.

Cheers,
JB

JB

unread,
Jan 23, 2007, 4:58:43 AM1/23/07
to Firebug

> In my example, the long output does wrap when outputed as a single
> string, but it is truncated when outputed as a single element array.

Hello,

Sorry to come back again with this :-)

Do you know if you will fix this?

Is it a real issue in your eyes or the way it should work?

Reminder: issue occurs when outputting a array with long values in it.
This was working fine in Firebug 0.4.

Thanks,
JB

Andrew Red

unread,
Jan 23, 2007, 7:45:39 PM1/23/07
to Firebug
I hope this feature request isn't in a 'Closed' state. There's nothing
more needed in my work as a line wrap in a 'Script' tab. The users of
FCKeditor and/or other modules with obfuscated JavaScript will probably
understand my need. One can't easily navigate to a function by name or
by it's line/col coordinates.

It is closely connected to a function referencing, say, by Profiler.
When it says which function has been called, it provides a link to it,
giving just Line information, AND not horizontally scrolling to it.

So, given the Search (below) doesn't work for Script tab (now at
least), the location of a certain function is quite out-of-the-ordinary
sort of task.

I am using the latest version of Firebug obtained at www.getfirebug.com

Thank you!

P.S. As for the rest, Firebug rulez! )) It makes FireFox worth getting
installed after all. (Not vice versa.) I really hated FireFox before
FireBug came to life. Thank you!

Reply all
Reply to author
Forward
0 new messages