Seems like
if ('console' in window)
{
console.log...
}
would work for conditional tracing. I suppose we should have a test
case for this that we support. You could open an issue to that effect.
The davidwalsh post is rather dated.
jjb
On Jan 27, 11:57 am, Chad <[email protected]> wrote:
> Has anyone tried getting this to work?
>
> http://davidwalsh.name/how-to-sniff-firebug-disable
>
> I want to leave console.log statements in my code in case I'm in debug
> mode. When I try setting the window.console object it seems to have no
> effect.
>
> Thanks,
>
> Chad
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---