简体   繁体   English

ASP.NET 调试服务器不调试IE

[英]ASP.NET Debug server without debugging IE

I have an ASP.NET application in visual studio 2010, and whenever I start debugging, it attaches the debugger to IE as well as the server, which just creates loads more bloat and makes everything run slowly.我在 Visual Studio 2010 中有一个 ASP.NET 应用程序,每当我开始调试时,它都会将调试器附加到 IE 以及服务器上,这只会增加负载并使一切运行缓慢。

How can I start debugging on the server only?如何仅在服务器上开始调试?

Andy安迪

Once the application is deployed to IIS, you can use Visual Studio on the server to attach to the web process .将应用程序部署到 IIS 后,您可以使用服务器上的 Visual Studio附加到 web 进程 Also, see how to debug deployed web applications .此外,请参阅如何调试已部署的 web 应用程序

There is no way to start debugging of an ASP.NET site in Visual Studio without it launching a browser.如果不启动浏览器,则无法在 Visual Studio 中开始调试 ASP.NET 站点。 So set the default browser to a different browser that you want to use so you don't waste spawning an IE instance.因此,将默认浏览器设置为您要使用的其他浏览器,这样您就不会浪费生成 IE 实例。 From Setting a Default Browser for Visual Studio :为 Visual Studio 设置默认浏览器

  1. Open a WebForm file in VS (anything ending in.aspx will do)在 VS 中打开一个 WebForm 文件(任何以 .aspx 结尾的都可以)
  2. Select the "Browse With..." option from the File menu Select 文件菜单中的“浏览方式...”选项
  3. Select your preferred browser from the list and click the "Set as Default" button Select 从列表中选择您的首选浏览器,然后单击“设置为默认值”按钮

One way is to browse with option by clicking the browse with option and the other way is to set the default browser as any other browser than IE一种方法是通过单击浏览选项来使用选项浏览,另一种方法是将默认浏览器设置为除 IE 之外的任何其他浏览器

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM