Sorry for the title. Firebug bug just does'nt scan! I've been doing a bit of coding this evening, and found an interesting little bug. I'm using Firefox 3.02, with Firebug 1.2.1 to code/debug a bit of jquery javascript, and using the usual console.log(string) to write messages to the console.
This evening, however, I've been getting an odd "console is undefined" error message in Firebug. Arrgh. After a little bit of Googling I found these posts...
fBug - Google Code
Google Groups - Firebug
I found the solution (with jQuery at least) to be to simply put an empty console.log() before any other code (yes, wierd, but it works). I hope a reader finds this useful.
Thank you, this was very helpful.
ReplyDeleteWhat a stupid error...
Cheers, glad it helped!
ReplyDelete