I strongly suggest using FireBug as "console" in firefox.
This is somewhat of an "official" extension, and it gets uploaded along the browser.
Very convenient tool, especially when dealing with CSS and/or plugin/behavior developpement.
It raises errors consistantly when there are and give a precise description/location of where the error happened.