相当于 Firefox 的“错误控制台"在其他浏览器中 [英] Equivalent of Firefox's "error console" in other browsers

查看:25
本文介绍了相当于 Firefox 的“错误控制台"在其他浏览器中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在其他浏览器中是否有等效于 Firefox 的错误控制台"?我发现错误控制台对于查找 JavaScript 错误很方便,但似乎没有一种等效的简单方法可以在其他浏览器上查看错误消息.我对 Internet Explorer、Opera 和 Google Chrome 感兴趣.

Is there an equivalent to Firefox's "Error console" in other browsers? I find the error console handy for finding JavaScript errors, but there doesn't seem to be an equivalent simple way to see error messages on other browsers. I'm interested in Internet Explorer, Opera and Google Chrome.

发布脚本:我不是在寻找 Firefox 错误控制台的替代品,这对我来说很好.我不需要FireBug.我也知道谷歌浏览器中的开发人员工具,但我无法理解.我只想获取错误消息.有什么方法可以从中获取合理的错误消息吗?我一直没能.我的默认浏览器是 Windows 和 Linux 上的 Chrome,但如果我使用 JavaScript 执行某些操作,我最终不得不切换到 Firefox 以从错误控制台获取错误消息.

Post script: I'm not looking for an alternative to Firefox's error console, it is fine for me. I don't need FireBug. Also I am aware of the Developer Tools in Google Chrome, but I can't make sense of it. I just want to get the error messages. Is there some way to get sane error messages out of it? I haven't been able to. My default browser is Chrome on Windows and Linux, but if I do something in JavaScript, I end up having to switch to Firefox to get the error messages from the error console.

推荐答案

您有以下选择

  • Chrome:按 Ctrl+Shift+J (Cmd+Option+J 在 Mac 上),它将提供类似的功能.还可以考虑在 Chrome 中查看 JavaScript 调试器
  • IE7:没有内置.但是看看 IE 开发者工具栏
  • IE8:只需点击 F12,您就可以访问一些非常强大的内置工具.错误控制台位于 Script 标签
  • Firefox:只需使用 FireBugF12.内置工具现在很安静.
  • Opera:按 Ctrl+Shift+I (Cmd+Option+I(在 Mac 上)启动 Opera Drangonfly 这是一个集成到 Opera 浏览器中的功能齐全的开发和调试工具
  • Safari:从 Safari 的首选项中启用开发者菜单.它将提供各种工具(错误控制台、Web Inspector、JavaScript Profiler 等)的访问权限.当然也有快捷键,比如Cmd + Alt + C 控制台
  • Chrome: Press Ctrl+Shift+J (Cmd+Option+J on Mac) and it will give similar functionality. Also consider checking out JavaScript debugger in Chrome
  • IE7: Nothing built in. But have a look at IE Developer Toolbar
  • 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 Press F12. The built-in tools are now quiet good.
  • Opera: Press Ctrl+Shift+I (Cmd+Option+I on Mac) to launch Opera Drangonfly 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

这篇关于相当于 Firefox 的“错误控制台"在其他浏览器中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆