简体   繁体   English

使用Visual Studio 2010时禁用IE9 Javascript调试程序

[英]Disable IE9 Javascript debugger when using Visual Studio 2010

有没有办法在使用IE9的Visual Studio时禁用javascript调试?

If you click the Tools (Alt+X) button, then click the Internet Options menu item. 如果单击“ Tools (Alt+X)按钮,则单击“ Internet Options菜单项。

In the Advanced Tab, and in the Browsing category: 在“ Advanced选项卡和“ Browsing类别中:

Check Disable script debugging (Internet Explorer) 检查Disable script debugging (Internet Explorer)

This should disable the Javascript debugger 这应该禁用Javascript调试器

I tried the solution provided by Dotmister, but it didn't work on my Vista (x64), VS2010 and IE9. 我尝试了Dotmister提供的解决方案,但它在我的Vista(x64),VS2010和IE9上无效。

However I tried the following and it worked (source: http://www.visualstudiotutor.com/2011/02/disable-stopjavascript-debugging-in-visual-studio/ ) 但是我尝试了下面的工作(源代码: http//www.visualstudiotutor.com/2011/02/disable-stopjavascript-debugging-in-visual-studio/

  1. Open the application Property page and select the Web tab 打开应用程序属性页面,然后选择Web选项卡
  2. Select “Start External Program” and set the path to iexplorer.exe 选择“启动外部程序”并设置iexplorer.exe的路径
  3. Enter the URL in the Command line argument option 在“命令行参数”选项中输入URL
  4. Hit F5 to commence debugging. 点击F5开始调试。

My debugger was very slow when I hit a breakpoint, partly because I had the Edit and Continue enabled (you can disable it in VS under Tools -> Options -> Debuggins -> Edit and Continue) and partly because I could not disable JavaScript debugging. 当我遇到断点时,我的调试器非常慢,部分是因为我启用了编辑并继续(你可以在工具 - >选项 - >调试 - >编辑和继续下在VS中禁用它),部分是因为我无法禁用JavaScript调试。

Now it is significantly faster. 现在它明显更快。

您还可以通过以下方式禁用VS中的所有脚本调试:reg add HKLM \\ SOFTWARE \\ Microsoft \\ VisualStudio \\ 9.0 \\ AD7Metrics \\ Engine {F200A7E7-DEA5-11D0-B854-00A0244A1DE2} / v ProgramProvider / d {4FF9DEF4-8922-4D02-9379 -3FFA64D1D639} / f

  1. Right click the web application and choose Properties Click Web tab 右键单击Web应用程序,然后选择属性单击Web选项卡
  2. on the left and choose “Don't open page” radio button on the left 在左侧,选择左侧的“不打开页面”单选按钮
  3. panel Start Debugging (press F5) 面板开始调试(按F5)
  4. Open Internet Explorer and navigate the URL. 打开Internet Explorer并导航URL。 { I just pinned that instance of IE to my taskbar ;-) } {我刚刚将IE的实例固定到我的任务栏;-)}

If the disable checkboxes in IE doesn't work for youm then in VS go to 如果IE中的禁用复选框对你不起作用,那么在VS中转到

Tools > Options > Debugging > Just-In-Time > Uncheck Script Option. 工具>选项>调试>即时>取消选中脚本选项。

This worked for me. 这对我有用。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用IE9,Visual Studio 2010,MVC3和Razor语法调试Javascript - Debugging Javascript with IE9, Visual Studio 2010, MVC3 and Razor syntax 使用调试器时,如何强制 IE9 “看到”最新的 javascript? - how can I force IE9 to “see” the most current javascript when using the debugger? Visual Studio 2010-调试器未执行当前的Javascript源代码 - Visual Studio 2010 - Debugger is not executing current Javascript source code 如何在IE9中启用JavaScript调试器 - How to enable javascript debugger in IE9 删除Visual Studio / Visual Web Developer 2010 Express调试器并在浏览器的调试器中调试JavaScript - Removing the Visual Studio / Visual Web Developer 2010 Express debugger and debugging JavaScript in the browser's debugger (重新)使用 Visual Studio 2008 在 IE7 中启用 JavaScript 调试器 - (Re)Enabling JavaScript debugger in IE7 with Visual Studio 2008 sharepoint2010:使用Visual Studio 2010的Sharepoint 2010中的JavaScript - sharepoint2010 : javascript in Sharepoint 2010 using visual studio 2010 Firefox中的Javascript问题,但IE中的Javascript问题调试问题VIsual Studio 2010 - Javascript Problems in Firefox but not in IE Debugging problems VIsual Studio 2010 如何在IE9 beta中禁用JavaScript? - How to disable JavaScript in IE9 beta? 有谁知道如何使用Visual Studio Express 2010调试IE 7和IE 8中的javascript,而不必安装Frontpage Server扩展? - Does anyone know how to debug javascript in IE 7 and IE 8 using Visual Studio Express 2010 without having to install Frontpage Server extensions?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM