How do you debug javascript in Safari?
How do you debu开发者_Python百科g 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.
精彩评论