[英]How to disable script debugging in Visual Studio 2010 when running Asp.Net website project?
I'm creating a website in Visual Studio 2010. I would like to use Visual Studio for C# debugging, without using it as JavaScript debugger. 我正在Visual Studio 2010中创建一个网站。我想使用Visual Studio进行C#调试,而不必将其用作JavaScript调试器。 Is there a way to disable script debugging for Asp.Net website projects?
有没有一种方法可以为Asp.Net网站项目禁用脚本调试? I run my projects by hitting F5 in my Visual Studio.
我在Visual Studio中按F5键来运行项目。
(I've noticed that when I attach the debugger manually, I can specify the type of stuff I would like to debug.) (我注意到,当我手动连接调试器时,可以指定要调试的东西的类型。)
Note: I would like to debug JavaScript, but not with Visual Studio 2010. The Developer Toolbar will suffice. 注意: 我想调试JavaScript,但不能调试Visual Studio2010。开发人员工具栏就足够了。
See this article on Connect, and the other article it links to. 请参阅“ Connect ”上的这篇文章 ,以及它链接到的另一篇文章 。
To summarise, it's a workaround. 总而言之,这是一种解决方法。 Apparently VS can't attach the debugger to both Silverlight and script so if you turn on Silverlight debugging, it has to disable script debugging!
显然,VS无法将调试器同时附加到Silverlight和脚本上,因此,如果打开Silverlight调试,则必须禁用脚本调试! To access these settings, go to Start Options which is within the web site Property Pages .
要访问这些设置,请转到网站“ 属性页”中的“ 开始选项” 。
Just go to Debug->Options & Settings and select Just-In-Time and Uncheck Script from Types of Code to enable debugging . 只需转到“ 调试”->“选项和设置”,然后选择“即时”并从“代码类型”中 取消选中“脚本 ”即可启用调试 。
This will disable script debugging. 这将禁用脚本调试。
I had same problem on VS2015. 我在VS2015上遇到了同样的问题。 There you can choose on which browser you run/debug project.
您可以在此处选择在哪个浏览器上运行/调试项目。 I think older VS opens default browser, so you should change that.
我认为旧版VS会打开默认浏览器,因此您应该更改它。
Anyway, I set project to open in chrome and then I manually opened IE and copy-paste the URL from chrome. 无论如何,我将项目设置为在chrome中打开,然后手动打开IE,然后从chrome复制并粘贴URL。 VS doesn't debug javascript in that case.
在这种情况下,VS不会调试javascript。
On website project left click on project in solution explorer and go to the project properties->go to the Web tab->scroll to the bottom of this tab and on Debuggers area select ASP.NET and Silverlight checkbox. 在网站项目上,左键单击解决方案资源管理器中的项目,然后转到项目属性->转到Web选项卡->滚动到此选项卡的底部,然后在Debuggers区域中选择ASP.NET和Silverlight复选框。 It will disable script debugging.
它将禁用脚本调试。
If ur using IE 8.0 then go to tools-Internet options-advance tab- and uncheck Disable script debugging. 如果您使用的是IE 8.0,请转到工具-Internet选项-高级选项卡-并取消选中禁用脚本调试。 Its works fine here.
它在这里工作正常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.