Hi Anil
The instructions on the releases page are badly in need of an update.
If you are using console.log('somevalue') only when you are debugging
then there is no problem as long as Firebug or Firebug Lite are
active. It should work on all modern browsers.
If you use console.log when you are not debugging then put the
following at the top of your Javascript:
console={"log":function(){}};
When you run Lite you can:
1. Click on the options dropdown
2. Check 'Override window.console'
3. Click Save
These settings are saved in a cookie per domain.
If you are including the Javascript file rather than using the
bookmarklet then you can either do the above or you can include the
following line after your firebug-lite.js include:
firebug.env.override=true;
If you have any other questions then I am around here often, just give
me a shout.
-Mike Ratcliffe
On May 6, 3:59 pm, Anil <[email protected]> wrote:
> I am trying to use Firebug Lite so my JS will work in IE and other
> browsers.
> This is unclear to me:
> " On some browsers such as Safari, the console object is already
> declared and may result in an error. You can get round this by using
> the following console commands instead..
> firebug.d.console.log
> firebug.d.console.dir"
>
> If I use firebug.d.console.log, will it work in IE and Firefox? I want
> my JS code to work in all browsers.
> thanks,
> Anil
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---