【问题标题】:How to see the exception message when 'Pause on Exceptions' is turned on in Chrome?在 Chrome 中打开“暂停异常”时如何查看异常消息?
【发布时间】:2017-01-04 03:59:04
【问题描述】:

当我在 Chrome 中打开 Pause on Exceptions 时,它会在弹出 JavaScript 错误时正确暂停,但我看不到异常消息本身。

有什么方法可以在必须点击继续之前查看消息

注意有时可以尝试从源代码中读取它,但这远非理想,因为它可能包含多个变量。

【问题讨论】:

    标签: javascript google-chrome debugging exception


    【解决方案1】:

    您可以在 ScopeLocal 部分找到异常对象:

    【讨论】:

    • 太棒了!非常感谢。仍然不明白为什么他们不为此保留更多的屏幕空间。在我看来,这是调试的重要组成部分。
    • @DirkBoer 猜 google 太穷了,付不起钱请人来实现工具提示。它是尖端技术和所有:(
    猜你喜欢
    • 2015-05-29
    • 1970-01-01
    • 1970-01-01
    • 2012-06-20
    • 1970-01-01
    • 1970-01-01
    • 2020-08-30
    • 1970-01-01
    • 2023-04-04
    相关资源
    最近更新 更多