在 IE11 中调试 JavaScript
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24063328/
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
Debugging JavaScript in IE11
提问by Michael Broschat
The F12 tools look good, and I see controls for most of what I would like to use (Continue, Step In, Step Out). But the HTML app I want to debug runs before I can start the F12 tools. What I need is a Restart button, it would seem to me.
F12 工具看起来不错,而且我看到了我想使用的大部分内容的控件(继续、步入、步出)。但是我想调试的 HTML 应用程序在我可以启动 F12 工具之前运行。我需要的是一个重新启动按钮,在我看来。
Am I missing seeing this, or am I out of luck?
是我错过了这个,还是我运气不好?
By the way, I see the same problem in Chrome.
顺便说一下,我在 Chrome 中看到了同样的问题。
回答by Servus7
- Open your Page.
- Press
F12
to display the tools. - Switch to the debugging tab.
- Add your breakpoints.
- Refresh by pressing
F5
orCtrl+F5
orCtrl+R
.
- 打开您的主页。
- 按
F12
显示工具。 - 切换到调试选项卡。
- 添加断点。
- 按
F5
或Ctrl+F5
或刷新Ctrl+R
。