How to View JavaScript Errors in Firefox

by Chris Hoffman

Mozilla Firefox contains an error console that displays errors, warnings and other messages from the JavaScript and cascading style sheet files on Web pages and installed add-ons. Access to the error console is disabled by default starting with Firefox 4. You can view JavaScript errors by enabling access to the error console and filtering out the warnings and other messages. The console only shows errors for your current Firefox session.

Type "About:config" into the address bar near the top of the Firefox window, and press "Enter."

Click the "I'll Be Careful, I Promise" button on the warning page that appears.

Type "Errorconsole" into the filter box at the top of the page.

Double-click the "devtools.errorconsole.enabled" preference to enable it.

Close all open Firefox windows, and re-open Firefox.

Click the "Firefox" menu button, hover the mouse cursor over "Web Developer" in the menu, and click "Error Console."

Click the "Errors" button at the top of the error console window to show only errors, not warnings or messages.

Navigate to the Web page with the errors, and read them from the error console window.

Tip

  • check Click the "Tools" menu if you don't see the "Firefox" menu button.

Warning

  • close The About:config page contains a variety of options users shouldn't modify; be careful when using it.

About the Author

Chris Hoffman is a technology writer and all-around tech geek who writes for PC World, MakeUseOf, and How-To Geek. He's been using Windows since Windows 3.1 was released in 1992.