Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

JavaScript Errors and the Firefox Console

DZone's Guide to

JavaScript Errors and the Firefox Console

· Web Dev Zone
Free Resource

Discover how to focus on operators for Reactive Programming and how they are essential to react to data in your application.  Brought to you in partnership with Wakanda

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.

Learn how divergent branches can appear in your repository and how to better understand why they are called “branches".  Brought to you in partnership with Wakanda

Topics:

Published at DZone with permission of Raymond Camden, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}