简体   繁体   English

如何在 Safari 6 (Mountain Lion) 中查看 JavaScript 错误消息

[英]How to view JavaScript error messages in Safari 6 (Mountain Lion)

I'm using Safari 6 that came with Mountain Lion.我正在使用 Mountain Lion 附带的 Safari 6。 They changed everything about the web inspector and I'm lost.他们改变了网络检查器的一切,我迷路了。

When I get an uncaught JavaScript error Safari helpfully pauses execution, zooms to the file and line that's broken, displays the call stack on the left and local variables on the right.当我遇到未捕获的 JavaScript 错误时,Safari 会帮助暂停执行,放大到损坏的文件和行,在左侧显示调用堆栈,在右侧显示局部变量。

But where is the text describing the error?但是描述错误的文本在哪里? It's not in the logs.它不在日志中。 None of the little tabs on the left or right show anything.左侧或右侧的小标签都没有显示任何内容。

Looks like the message appears in Current Log only if you try to continue execution by clicking "Continue script execution" button.看起来只有当您尝试通过单击“继续脚本执行”按钮继续执行时,才会在当前日志中显示该消息。

To me this strikes a bit odd too.对我来说,这也有点奇怪。 Maybe worth a bug report at https://feedbackassistant.apple.com/ ?也许值得在https://feedbackassistant.apple.com/ 上报告错误?

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

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