tags:

views:

31

answers:

2

Sometimes Firefox generates console not defined error when console.debug() is used. Is this some kind of timing issue with load?

+2  A: 

When Firebug is not present, the console object will be undefined.

Here are some workaround suggestions.

I have no idea what led to this design decision.

Pekka
+1  A: 

I cannot tell you why, but window.console.debug() should always work(assuming there is a console-object in global scope). I've also noticed this behaviour the last time, since that I allways use window.console instead of console.

Dr.Molle