1

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

Mark K
  • 1,224
  • 3
  • 20
  • 30

2 Answers2

2

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.

Community
  • 1
  • 1
Pekka
  • 442,112
  • 142
  • 972
  • 1,088
1

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
  • 116,463
  • 16
  • 195
  • 201