为什么我的监视表达式在Firefox调试器中不可用? [英] Why are my watch expressions (unavailable) in Firefox debugger?
问题描述
我正在尝试使用Firefox 59.0.2进行调试.我在一个函数内,我的大多数手表表达式都是(不可用)".它们的值有时会显示在作用域"选项卡中,如果我使用alert()将它们回显到屏幕上,则会显示这些值.
I'm trying to debug with Firefox 59.0.2. I'm inside a function and most of my watch expressions are "(unavailable)". They have values that sometimes display in the scope tab and will display if I use alert() to echo them to the screen.
是什么导致此问题?有范围问题吗?我认为全局范围变量没有这个问题.
What is causing this problem? Is there a scope issue? I think the global scope variables aren't having this issue.
我在控制台中没有出现任何JavaScript错误.
I am not getting any javascript errors in console.
推荐答案
这通常是因为您在调试堆栈中与变量作用域不同的位置暂停了调试器. 这是一个潜在的线索.
This is often because you're pausing the debugger at a different point in the call stack than where the variable is in scope. Here's a potential clue.
这篇关于为什么我的监视表达式在Firefox调试器中不可用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!