Why are my watch expressions (unavailable) in Firefox debugger?

时光怂恿深爱的人放手 提交于 2019-12-11 08:53:17

问题


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.

I am not getting any javascript errors in console.


回答1:


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.



来源:https://stackoverflow.com/questions/50125252/why-are-my-watch-expressions-unavailable-in-firefox-debugger

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!