在 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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-28 02:06:38  来源:igfitidea点击:

Debugging JavaScript in IE11

javascriptdebugginginternet-explorer-11

提问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

  1. Open your Page.
  2. Press F12to display the tools.
  3. Switch to the debugging tab.
  4. Add your breakpoints.
  5. Refresh by pressing F5or Ctrl+F5orCtrl+R.
  1. 打开您的主页。
  2. F12显示工具。
  3. 切换到调试选项卡。
  4. 添加断点。
  5. F5Ctrl+F5或刷新Ctrl+R