How do you debug javascript in Safari?

2019-04-03 11:25发布

问题:

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.

回答1:

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



回答2:

Have you tried using the develop bar?

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



回答3:

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.