我已经打开了一个窗口与我正在调试的网站。我不需要VS为我启动另一个每当我需要调试。
有没有办法阻止这种行为?
我已经打开了一个窗口与我正在调试的网站。我不需要VS为我启动另一个每当我需要调试。
有没有办法阻止这种行为?
当前回答
这个变通方法对我来说适用于VS 2019
工具=>选项
然后在搜索框中键入项目和解决方案。
选择Web项目。
然后取消下面的选项。
关闭浏览器窗口时停止调试器,调试停止时关闭浏览器。
这对我很有用。希望这能有所帮助。
其他回答
There seems to be one case in which none of the above but the following helps. I'm developing a project for Windows Azure cloud platform and I have a web role. There is indeed a radio button Don't open page in Project -> {Project name} properties... as was pointed out by Pawel Krakowiak, but it has no effect in my case whatsoever. However, there is the main cloud project in solution explorer and there is the Roles folder under it. If I right click my web role in this folder and choose Properties, I get another set of settings and on the Configuration tab there is the Launch browser for flag, after unchecking it a new browser window is not opened on application start up.
VS 15.7.1工具→选项→项目和解决方案→Web项目→取消勾选关闭浏览器窗口时停止调试器。
在Visual Studio 2019中,我解决了同样的问题:
去你的Visual Studio选项工具>>>选项>>>项目和解决方案>>> Web项目然后最后取消选项>>>停止调试器浏览器窗口关闭,关闭浏览器时调试停止
步骤1:
步骤2: >>>关闭调试器浏览器窗口,调试停止时关闭浏览器
步骤3:
最后点击>>> OK按钮,这些都是解决问题的步骤。
当你第一次打开一个web/应用程序项目时,按Ctrl-F5,这是启动应用程序而不调试的快捷方式。然后,当您随后按下F5并启动调试器时,它将使用该IE实例。然后在Visual Studio中停止并启动调试,而不是关闭IE。
它在我的机器上工作。我正在使用内置的开发web服务器。不知道这有什么区别。
Firefox也将保持打开状态,因此您可以同时在其中一个或两个中进行调试。
我已经通过以下步骤解决了我的问题。 进入工具>>单击选项>>单击项目和解决方案>> web项目>> 取消“关闭浏览器时停止调试”选项