开发者

Visual Studio web project debug mode doesn't end automatically

In a WPF or WinForms application, when you press F5 (or click the green arrow), it opens the application in debug mode. Then when you close the application, it stops debug mode (and you can click the green arrow on the toolbar or press F5 again).

But, for me anyways, on any web application (ASP.NET, MVC, etc...) that runs in a browser, when I close the browser window, Visual Studio remains in debug mode (F5 does nothing, and the green arrow is disabled). Its such a minor thing that I've put up with it for a few months... but its really starting to get on my nerves. How can I solve this?

If it makes any difference, I use the Dev version of Chrome, and Visual Studio 2010 Professional.

EDIT

For clarification, I already know how to end Debug mode. I just want it to end automatically when I close my br开发者_C百科owser.


F5 will enable debug mode, but Shift + F5 is used to exit debug mode.


I'm not sure if you're having the same issue I was having but if you manually set the "Start External Program:" under your project properties to the browser you want to use, even if it is your default, and make sure you have the localhost:Port# in the field below, it should fix your problem.

I was debugging just fine before upgrading Windows 7 32-bit to 64-bit (Visual Studio 2010 would exit debugging mode upon closing Firefox). After reinstalling everything, Visual Studio wouldn't exit debug-mode and I spent at least an hour trying to figure out why, thinking it had something to do with my IIS config or the settings in Firefox.

What happened is previously I had Chrome as my default browser, and after the upgrade I decided to use Firefox as my default. So instead of filling in the "Start external program" I just was selecting the "Specific Page:" to have it startup my default browser. But apparently Visual Studio won't attach to the process this way. Hope this helps, if not you then someone. :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜