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

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

问题描述

在以前版本的 Visual Studio(或我几年前设置的某些设置)中,当我停止调试 Web 应用程序时,实际的 IIS express 实例将继续运行.我真的很喜欢这种行为,因为这意味着在我编辑代码/重新编译等时,站点总是在运行以进行修补.

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天全站免登陆