我已经打开了一个窗口与我正在调试的网站。我不需要VS为我启动另一个每当我需要调试。
有没有办法阻止这种行为?
我已经打开了一个窗口与我正在调试的网站。我不需要VS为我启动另一个每当我需要调试。
有没有办法阻止这种行为?
当前回答
CTRL+ALT+ENTER如果你的修正是前端
http://blogs.msdn.com/b/webdev/archive/2013/06/28/browser-link-feature-in-visual-studio-preview-2013.aspx
其他回答
I looked over the answers and didn't see the solution I found mentioned. If it was, my apologies. In my case, currently using Visual Studio 2015. In the solution explorer, right click on the Project file and click properties. Go to the Debug tab and this should have info for how you're launching "IIS Express or Web(DNX)" for the first two drop downs, and then there should be a checkmark box for "Launch URL:". Uncheck this option and your browser won't be automatically launched everytime you go to debug your application. Hope this helps someone out.
CTRL+ALT+ENTER如果你的修正是前端
http://blogs.msdn.com/b/webdev/archive/2013/06/28/browser-link-feature-in-visual-studio-preview-2013.aspx
您可以右键单击您的项目,然后选择属性,在调试选项卡上,您应该取消选中启动浏览器复选框。
这个变通方法对我来说适用于VS 2019
工具=>选项
然后在搜索框中键入项目和解决方案。
选择Web项目。
然后取消下面的选项。
关闭浏览器窗口时停止调试器,调试停止时关闭浏览器。
这对我很有用。希望这能有所帮助。
您可以使用“附加到进程”功能,而不是按F5。
这也可以让你在已知的工作部分中导航,而不会在下面加载VS调试器。