简体   繁体   中英

How do you debug javascript in Safari?

How do you debug javascript in Safari on Windows. I've tried google but the only thing that seems to be coming up is Safari Enhancer which is for Mac OS.

not sure if in Windows is the same, but on the mac version you have a Developer menu ("Develop"), at the mac this menu is shown via the preferences > advanced > show develop menu, and there you can view items such as "Start debugging javascript".

EDIT: just found this: Enabling debug menu in Safari for Windows

Have you tried using the develop bar?

To enable, go to preferences -> Advanced -> Check show develop menu in the menu bar

Right click on the page, and click "Inspect Element"

You'll get a pop-up with lots of tabs that looks kinda like firebug -- the console tab is what you want.

How do you debug javascript in Safari on Windows. I've tried google but the only thing that seems to be coming up is Safari Enhancer which is for Mac OS.

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