简体   繁体   English

你如何在 Safari 中调试 javascript?

[英]How do you debug javascript in Safari?

How do you debug javascript in Safari on Windows.您如何在 Windows 上的 Safari 中调试 javascript。 I've tried google but the only thing that seems to be coming up is Safari Enhancer which is for Mac OS.我试过谷歌,但似乎唯一出现的是适用于 Mac OS 的 Safari Enhancer。

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".不确定在 Windows 中是否相同,但在 mac 版本上,您有一个开发人员菜单(“开发”),在 mac 上,此菜单通过首选项 > 高级 > 显示开发菜单显示,在那里您可以查看诸如“开始调试javascript”。

EDIT: just found this: Enabling debug menu in Safari for Windows编辑:刚刚发现这个: 在 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.如何在Windows的Safari中调试javascript。 I've tried google but the only thing that seems to be coming up is Safari Enhancer which is for Mac OS.我试过谷歌,但似乎唯一出现的是适用于Mac OS的Safari Enhancer。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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