On Tuesday, December 6, 2011 7:39:36 PM UTC+1, webs wrote:
>
> hi Honza,
>
>     thanks a lot. I tried this API in the console panel of firebug, it 
> works fine.
>
Cool, I guess you tried to execute it in the Firebug's command line.
 

>     but, when I try to use this in a firebug extension, it does not work 
> and with error message as: Firebug.Console.timeStamp is not a function
>
That's correct  Firebug.Console doesn't have such function

The timeStamp function is implemented in console/consoleExposed.js module.

    I also tried with console.timeStamp('something'), still does not 
> work... 
>
Where did you execute this?

Currently you need to use the 'console' object on the page to call 
timeStamp.

So, you need the window reference and:

win.console.timeStamp("test");

(or if win is a wrapper)

win.wrappedJSObject.console.timeStamp("test");

I think we could improve the API so, it's easier to access it from Firebug 
extensions.
Please create a new issue report.

Honza
 

>
>     but, when I try Firebug.Console.log("something"), it works.
>
>     do you have some ideas?
>
>
> thanks a lot
> cui
>
>
> 2011/12/6 Jan Honza Odvarko <[email protected]>
>
>> You can already use: console.timeStamp()
>>
>> See more:
>> http://www.softwareishard.com/blog/firebug/firebug-1-8-console-timestamp/
>>
>> NetExport is also exporting the info (creating a custom field within HAR)
>>
>> Honza
>>
>>  -- 
>> 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
>> https://groups.google.com/forum/#!forum/firebug
>>
>
>

-- 
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
https://groups.google.com/forum/#!forum/firebug

Reply via email to