简体   繁体   中英

how to check javascript syntax error

Firebug looks not capable to check js syntax error...

Is there any good way to do that?

Currently I just wrote a js but the firebug didn't show any error but the functionality is totally broken.

Firebug does do it. Make sure that you have JavaScript Console enabled, you can do so by clicking the Console dropdown and from their select Enabled . You need to press F12 key to open firebug and once you refresh the page, you will see any errors you have in your script in the firebug js console.

If you are using Firefox, you can also press Contr+Shift+J to open firefox's error dialog.

are you sure Firebug is turned on? If it's on, the little bug in the lower right is colored brown. if it's not on, the bug is gray.

also, I find that Web Inspector in Safari/Chrome is better.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM