Aha, thank you!! I was definitely missing what the link to the object
was supposed to be doing; %o makes sense now, and I see that .log does
not provide line numbers.
As far as getting line numbers (something I must still be doing
wrong), it seems like console.debug, .info, .warn, and .error ("Writes
a message to the console with... a hyperlink to the line where it was
called") should give me that info, but none of them currently do
that. Is this another scenario where I should be passing another
option to the console function, or should console.error("your code is
fubar") be giving me a line number?
Thanks (again),
Richard
On Sep 23, 8:55 pm, John J Barton <[EMAIL PROTECTED]> wrote:
> console.log('This is some %s. %o!! %d!!! %%s', 'formatted text',
> document.body, 42);
> prints:
> This is some formatted text. <body onload="console.log('Welcome')">!!
> 42!!! %s
> where the angle bracket is linked back into Firebug.
>
> As far as I know console.log() does not provide line numbers. A
> function could be implemented to add line numbers using same concept
> as console.trace() but only taking the top of the stack.
>
> You can suggest it:http://code.google.com/p/fbug/issues/list
>
> On Sep 23, 4:04 pm, Richard <[EMAIL PROTECTED]> wrote:
>
> > Despite my best efforts, on both Mac and PC (and across a couple
> > different users in my department), I don't seem to be able to get
> > Firebug to show line numbers/links when I shoot off console messages
> > (console.log, console.debug, console.error). %o returns undefined
> > when I use it within console.log. I'm sure I'm doing something wrong,
> > but I can't seem to figure out what. The two configurations that this
> > is occurring in are:
>
> > FF 3.0.1, FB 1.2.1, Win XP SP2
> > and
> > FF 3.0.1., FB 1.2.1, Mac OS X 10.5.5
>
> > Any thoughts or assistance would be greatly appreciated.
>
> > Thanks,
> > Richard
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---