简体   繁体   English

运行Asp.Net网站项目时如何在Visual Studio 2010中禁用脚本调试?

[英]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.

相关问题 使用Microsoft Visual Studio 2010进行调试。ASP.NET - Debugging with Microsoft Visual Studio 2010. ASP.NET 从ASP.NET 4网站项目迁移到Visual Studio 2010中的Web应用程序项目是否导致所有控件引发错误? - Migrating from ASP.NET 4 website project to web application project in Visual Studio 2010 Causing all controls to throw error? 如何将现有的ASP.NET应用程序集成到Visual Studio 2010中的现有网站中? - How to integrate existing ASP.NET app into existing website in Visual Studio 2010? 调试asp.net应用程序时在Visual Studio中查看会话 - View sessions in Visual Studio when debugging a asp.net application 在Visual Studio中运行Asp.NET项目时出现数据库错误 - DataBase Error while running Asp.NET project in Visual Studio 在使用Visual Studio .NET的Web应用程序项目类型而不是网站时,我在哪里放置类? (ASP.NET) - Where do I put classes when using Web Application project type of Visual Studio .NET instead of Website? (ASP.NET) 在构建ASP.NET网站时,如何查看Visual Studio生成的元项目文件? - How do I view the metaproj files generated by Visual Studio when building an ASP.NET website? 为什么在调试ASP.NET项目期间Visual Studio调试器为何停止工作,提示“无法跳转” - Why does the Visual Studio Debugger stop working during debugging ASP.NET project saying ~“Jump not possible” 如何在Visual Studio 2015中创建ASP.NET MVC 4项目 - How to Create an ASP.NET MVC 4 project in visual studio 2015 如何运行连接 Visual Studio 和 github 的 ASP.NET 项目 - How to run ASP.NET project connecting Visual Studio with github
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM