JavaScript Errors and the Firefox Console

This post is more than 2 years old.

This may fall into the category of "so obvious I'm the only one who didn't get it", but I just had to share it. I'm preparing a blog post where I've got an intentional error in my JavaScript code. I noticed that it wasn't showing up in the Firefox console though. I added a console.log message before the error - and it showed up - but my error never did.

Check out the screen shot below:

Notice that CSS warnings are showing up - which is cool - and "1" is my console.log message. But my JavaScript error isn't there. I clicked the console drop down to see what options were there:

Yep - logging of errors is enabled. So what the heck? Turns out I had to also check the options on the JavaScript tab:

Ugh. I can't imagine why Errors would be turned off, but maybe it's a sensible default for some reason. That complaint aside - I have to say I really like the look of the console.

Raymond Camden's Picture

About Raymond Camden

Raymond is a senior developer evangelist for Adobe. He focuses on document services, JavaScript, and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA https://www.raymondcamden.com

Archived Comments

Comment 1 by Niall O&aposDoherty posted on 8/16/2013 at 4:33 PM

Check out the 3D View and Responsive Design Mode accessible from the top right menu icons.

All very impressive!!

Comment 2 by Raymond Camden posted on 8/16/2013 at 5:35 PM

I've seen both. I like the responsive design mode. The 3D View seems... cool but impractical. But I haven't actually used it for 'real' yet so I may be wrong.

Comment 3 by Raymond Camden posted on 8/16/2013 at 6:27 PM

As just an FYI, with a virgin install of FF on a Win8 VM, this defaulted to on. But I figure this blog post will be helpful for folks who - like me - somehow got it disabled it in the past.

Comment 4 by Dan G. Switzer, II posted on 8/16/2013 at 9:06 PM

@Raymond:

The 3D view comes in really handy when you're trying to troubleshoot z-index issues. That's about the only practical use I've found for it, but it really shines there.