How To Check Javascript Error In Firefox
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies firefox javascript console shortcut of this site About Us Learn more about Stack Overflow the company Business firefox javascript debugger Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask debugging javascript in chrome Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign
Firefox Debugger Download
up How to make firefox report the javascript error? up vote 9 down vote favorite 3 I am developing with Firefox and Firebug, but in my environment if the js has the syntax error, the firefox will not report any error, it just stops there. Then I have to use IE to reload the page, IE will report the error at the firefox console.log not working bottom left corner, and after clicking it I can see the line number of the js error. I am wondering if I misconfigured something? I think at least firebug should report the error as IE does. But firebug displayed nothing. The example code(show error in IE but normal in FF):
script if (a < ) 0 { } javascript debugging firefox firebug share|improve this question edited Jan 17 '11 at 4:31 asked Jan 17 '11 at 4:15 Bin Chen 12.5k33107162 add a comment| 2 Answers 2 active oldest votes up vote 9 down vote accepted To configure Firebug to show errors, do the following: Click the arrow on the Console tab. Make sure it's Enabled. Make sure "Show JavaScript Errors" is checked. You should see the errors in the console now, and it should show you the line number and filename. I am using Firefox 3.6 and Firebug 1.5.0. UPDATE: This same process also works in the latest Firefox Nightly 19.0a1, using Firebug 1.10.4. Thus, these instructions are st& Guides Learn the Web Tutorials References Developer Guides Accessibility Game development ...more docs Mozilla Docs Add-ons Firefox WebExtensions Developer ToolsFeedback Get Firefox help firefox console shortcut Get web development help Join the MDN community Report a content problem Report
Javascript Debug Statement
a bug Search Search Archive of obsolete content Languages Čeština (cs) Español (es) Français (fr) 日本語 (ja)
How To Debug Javascript In Firefox Firebug
Polski (pl) Русский (ru) Add a translation Edit Advanced Advanced History Print this article MDN Archive of obsolete content Archived Mozilla and build documentation Error Console Your Search Results teoli robhudson http://stackoverflow.com/questions/4709982/how-to-make-firefox-report-the-javascript-error joanna wbamberg ethertank MKaply inma_610 Nickolay Sheppy Inimino Johnjbarton kohei.yoshino Marcoos SylvainPasche Chbok Error Console The Error Console is deprecated in Firefox, and is now only made available if you set the devtools.errorconsole.enabled preference to true. Use the Web Console instead, for web content, or the Browser Console for chrome content. The Error Console is a tool available in most Mozilla-based applications that https://developer.mozilla.org/en-US/docs/Archive/Mozilla/Error_console is used for reporting errors in the application chrome and in web pages user opens. It reports JavaScript-related errors and warnings, CSS errors and arbitrary messages from chrome code. In Firefox, the Error Console can be opened from the tools menu or by Ctrl-Shift-J. For information about what JavaScript exceptions get logged into the Error Console, and how to make all exceptions get logged, read the article Exception logging in JavaScript. See Setting up extension development environment#Development preferences for the preferences you should set if you want to see errors from Firefox and extensions in the Error console. Before Gecko 1.8.1 (Firefox 2), it was called JavaScript Console (see bug 265871). Types of errors Error usually a syntax error that prevents the program from compiling. Warning usually lets the program compile but warns of bad coding and suggests design flaws. Message very similar to warning, used very rarely. Manipulating data displayed in Error Console Information displayed in Error Console can be accessed and manipulated through the Console service. Extensions can write to the Error Console from JavaScript using Components.utils.reportError, or if you're fine with
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies http://stackoverflow.com/questions/4709982/how-to-make-firefox-report-the-javascript-error of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: how to Sign up How to make firefox report the javascript error? up vote 9 down vote favorite 3 I am developing with Firefox and Firebug, but in my environment if the js has the syntax error, the firefox will not report any error, it just stops there. Then I have to use IE to reload the page, IE will report the error at how to check the bottom left corner, and after clicking it I can see the line number of the js error. I am wondering if I misconfigured something? I think at least firebug should report the error as IE does. But firebug displayed nothing. The example code(show error in IE but normal in FF):
script if (a < ) 0 { } javascript debugging firefox firebug share|improve this question edited Jan 17 '11 at 4:31 asked Jan 17 '11 at 4:15 Bin Chen 12.5k33107162 add a comment| 2 Answers 2 active oldest votes up vote 9 down vote accepted To configure Firebug to show errors, do the following: Click the arrow on the Console tab. Make sure it's Enabled. Make sure "Show JavaScript Errors" is checked. You should see the errors in the console now, and it should show you the line number and filename. I am using Firefox 3.6 and Firebug 1.5.0. UPDATE: This same process also works in the latest Firefox Nightly 19.0a1, using Firebug 1.10.4. Thus, these ins