是否存在会导致 Visual Studio 2010 调试器中断的 JavaScript 命令?
尝试 break();
没有用,因为它只在循环内有效。 stop();
也失败了,因为它发现 stop()
不存在并且我没有有用的堆栈跟踪。
最佳答案
Javascript 有一个 debugger
声明,它在 Firebug 中工作,所以它也应该在 VS 2010 中。
12.15 The debugger statement
Evaluating the DebuggerStatement production may allow an implementation to cause a breakpoint when run under a debugger. If a debugger is not present or active this statement has no observable effect.
ECMA-262 5th Edition
关于javascript - 如何从脚本中破解 Visual Studio 2010 JavaScript 调试器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3226200/