其他浏览器中是否有与 Firefox 的“错误控制台”等效的功能?我发现错误控制台可以方便地查找 JavaScript 错误,但似乎没有一种等效的简单方法可以在其他浏览器上查看错误消息。我对 Internet Explorer、Opera 和 Google Chrome 感兴趣。
帖子脚本:我并不是在寻找 Firefox 错误控制台的替代品,它对我来说很好。我不需要FireBug。我也知道 Google Chrome 中的开发人员工具,但我无法理解它。我只想获取错误消息。有什么方法可以从中获取合理的错误消息吗?我没能做到。我的默认浏览器是 Windows 和 Linux 上的 Chrome,但如果我在 JavaScript 中执行某些操作,我最终必须切换到 Firefox 以从错误控制台获取错误消息。
您有以下选择
-
Chrome: Press Ctrl+Shift+J (Cmd+Option+J on Mac) and it will give similar functionality. Also consider checking out JavaScript debugger http://www.pascarello.com/lessons/browsers/ChromeDebugHelp.html in Chrome
-
IE7:没有内置任何东西。但是看看
-
IE8: Just hit F12 and you will get access to some very capable built-in tools. Error console is on
Script
tab
-
Firefox:
Just use FireBug http://getfirebug.com/ Press F12. The built-in tools are now quiet good.
-
Opera: Press Ctrl+Shift+I (Cmd+Option+I on Mac) to launch Opera Drangonfly http://www.opera.com/dragonfly/documentation/ which is a fully featured development and debugging tool integrated into the Opera browser
-
Safari: Enable the Developer Menu from Safari's preferences. It will give access the various tools (Error Console, Web Inspector, JavaScript Profiler, etc). Of course there are also shortcuts, like Cmd + Alt + C for the console
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)