Visual Studio调试器,停止网站停止调试 [英] Visual studio debugger, dont stop website on stop debugging

查看:162
本文介绍了Visual Studio调试器,停止网站停止调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在以前版本的visual studio(或几年前设置的某些设置)中,当我停止调试Web应用程序时,实际的IIS express实例将继续运行。我真的很喜欢这种行为,因为这意味着我正在编辑我的代码/重新编译ect时,网站总是运行起来。

In previous versions of visual studio (or some setting I set years ago) when i stopped debugging a web application the actual IIS express instance would keep on running. I really like this behavior as it means the site is always running to tinker with while I'm editing my code/recompiling ect.

自从升级到VS 2013以后,似乎发生了,当我停止调试它也停止IIS Express应用程序池。

Since upgrading to VS 2013 this no longer seems to occur, when I stop debugging it also stops the IIS express app pool.

有谁知道是否有设置改变这种行为?

Does anyone know if there is a setting somewhere to change this behavior?

推荐答案

VS2013中的一项更改是在Web应用程序项目中默认启用编辑和继续。启用编辑和继续后,VS调试器可以隐藏地附加到Web服务器进程(例如IIS Express)。当您停止调试器时,这也会导致IIS Express进程死机。如果E& C被关闭,则调试器不使用侵入性附件,这样可以让调试器停止而不会导致附加的进程死机。

One of the changes in VS2013 is to enable Edit and Continue by default in web application projects. When you have Edit and Continue enabled, the VS debugger attaches invasively to the web server process (e.g. IIS Express). When you stop the debugger, this kills the IIS Express process as well. If E&C is turned off, the debugger does not use an invasive attach, which lets the debugger stop without killing the attached process.

您可以在项目中找到在Web选项卡下的调试器部分下的属性。

You can find this in your project properties on the Web tab, under the Debuggers section.

这篇关于Visual Studio调试器,停止网站停止调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆