停止开发服务器,当我停止调试 [英] stop development server when i stop debugging

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

问题描述

如何能自动停止我开发的Web服务器,当我在Visual Studio中停止调试?

How can automatically I stop the development web server when I stop debugging in Visual Studio?

推荐答案

有没有办法让Asp.Net开发服务,当你点击自动停止停止调试按钮,所有的做的是分离调试程序。你可以明确地但是杀死进程自己(这又将导致VS停止调试)。

There is no way to get the Asp.Net development service to automatically stop when you hit the "stop debugging" button, as all that does is detach the debugger. You could however explicitly kill the process yourself (which would in turn cause VS to stop debugging).

这个问题说明了如何在宏中做到这一点:

This question shows how you might do this in a Macro:

<一个href=\"http://stackoverflow.com/questions/886692/automatically-stop-restart-asp-net-development-server-on-build\">Automatically在构建停止/重新启动ASP.NET开发服务器

Automatically stop/restart ASP.NET Development Server on Build

另外看看mat3的回答关于如何迫使开发服务器重新启动每次启动调试(尽管它仍然会保持你完成调试会话,直到你下次运行probject运行后)的时间。

Alternatively take a look at mat3's answer on how you can force the development server to restart every time you start debugging (although it will still remain running after you have finished your debugging session until you next run your probject).

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

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