IE11 未在调试器中显示 javascript 文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/28314586/
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 08:45:55  来源:igfitidea点击:

IE11 not showing javascript files in debugger

javascriptinternet-explorerdebugging

提问by daven11

in IE11 I display the developer tools, then click on the debugger (or Ctrl-3) and it displays the debugger. In the top left there is the folder drop down which has a list of js files usually, but in this case none are displayed, only the html file is displayed.

在 IE11 中,我显示开发人员工具,然后单击调试器(或 Ctrl-3)并显示调试器。在左上角有一个文件夹下拉菜单,通常有一个 js 文件列表,但在这种情况下,没有显示,只显示 html 文件。

The site I'm looking at is on my local PC running in IIS if it matters. I can go to the same site on our build box and the js files are displayed in the debugger. I've restarted everything a number of times. I've checked the network monitor in the developer tools and it downloads the javascript files fine, I just can't see them in the debugger. It's worked previously fine (a couple of weeks ago when last I had to debug an IE problem), Any suggestions?

如果重要的话,我正在查看的站点位于我在 IIS 中运行的本地 PC 上。我可以在我们的构建框上访问同一个站点,并且 js 文件显示在调试器中。我已经重新启动了很多次。我已经检查了开发人员工具中的网络监视器,它可以很好地下载 javascript 文件,我只是在调试器中看不到它们。它以前运行良好(几周前我不得不调试 IE 问题),有什么建议吗?

running IE 11, Windows 7

运行 IE 11、Windows 7

采纳答案by daven11

Must be a problem with my IE11 install - I downloaded an IE11 vm from modern.ie and it works fine there. (setup information here for any curious https://superuser.com/questions/248569/virtual-pc-cant-access-localhost)

一定是我的 IE11 安装有问题 - 我从 modern.ie 下载了一个 IE11 虚拟机,它在那里工作正常。(这里有任何好奇的设置信息https://superuser.com/questions/248569/virtual-pc-cant-access-localhost

回答by ronnyfm

Go to Internet Options -> Advanced. Uncheck Disable script debugging, Disable script debugging (Others)

转到 Internet 选项 -> 高级。取消选中禁用脚本调试、禁用脚本调试(其他)

回答by sidrocks

Please go to the Debugger tab in Developer tools. Hit Ctrl+O and type your file name. Alternately, you can click the Folder icon and search for your file.

请转到开发人员工具中的调试器选项卡。按 Ctrl+O 并键入您的文件名。或者,您可以单击文件夹图标并搜索您的文件。