javascript IE 开发者工具断点不起作用
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/27722307/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
IE Developer Tools breakpoints are not working
提问by Wojtek
I'm trying to debug some javascript in IE 11 and I'm not able to force it to stop on a breakpoint.
我正在尝试在 IE 11 中调试一些 javascript,但我无法强制它在断点处停止。
debugger;
line works fine (stops debugger in that line), same file without a debugger;
line but with a breakpoint set in the same place does nothing (function works fine, but debugger does not stop on a breakpoint).
debugger;
行工作正常(在该行中停止调试器),没有debugger;
行但在同一位置设置断点的相同文件不执行任何操作(功能工作正常,但调试器不会在断点处停止)。
Chrome's and Firefox's debuggers stop on breakpoints in the same places.
Chrome 和 Firefox 的调试器在相同位置的断点处停止。
Any thoughts what could be the cause of this behavior?
任何想法可能是这种行为的原因?
回答by Wojtek
Hamlet, in the comments to OP question, gave the correct answer.
哈姆雷特在对 OP 问题的评论中给出了正确答案。
Uncheck the following option:
取消选中以下选项:
Internet Options > Advanced > Disable Script Debugging (Internet Explorer)
Internet 选项 > 高级 > 禁用脚本调试 (Internet Explorer)