在VS 2017上停止调试时如何停止浏览器自动关闭 [英] How to stop browser closing automatically when you stop debugging on VS 2017

查看:337
本文介绍了在VS 2017上停止调试时如何停止浏览器自动关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试新的VS 2017 RC,想知道是否有人知道如何恢复以前的调试行为

I'm trying out the new VS 2017 RC and wondering if anyone knows how to get the previous debugging behavior back

在VS 2015中,它是这样的:

In VS 2015 it went like this:

按开始调试

  • 网站会在新的Chrome标签中打开
  • 按停止调试
  • 网站仍处于打开状态,并且网站仍在运行/活动中

现在是2017年:

  • 按开始调试
  • 网站在新窗口中打开,该窗口无法与其他任何Chrome窗口/标签页对接
  • 按停止调试
  • 网站/Chrome窗口关闭,除非我手动进入Chrome中的localhost窗口,否则无法继续使用该网站

2017年有可能改回2015年风格吗?因此,Chrome/网站窗口可以与其他Chrome窗口/标签对接,并且在您停止调试后仍保持打开状态?

Is it possible in 2017 to switch back to the 2015 style? So the Chrome/Website window can dock with other Chrome windows/tabs, and it stays open after you stop debugging?

此外,我发现新的Chrome窗口令人沮丧,因为它似乎没有可用的历史记录/内容.例如,我无法自动完成表单或url,这在我尝试测试表单时非常烦人

Additionally, I find the new Chrome window frustrating to use, as it seems not to have any history/content available. E.g I can't autocomplete forms or urls, which is very annoying when I'm trying to test a form

推荐答案

Visual Studio 2017 15.7和更高版本& Visual Studio 2019 再次更改了内容.

禁用以下复选框将使您保持浏览器打开(停止调试后不会关闭)并打开另一个选项卡(而不是另一个窗口):

Disabling the following checkboxes will allow you to keep the browser open (doesn't close after stop debugging) and opens another tab (instead of another window):

工具>选项>调试>常规

  • 禁用为ASP.NET(Chrome,Edge和IE)启用JavaScript调试".

工具>选项>项目和解决方案> Web项目

  • ( Visual Studio 2017 )禁用关闭浏览器窗口时停止调试器".
  • ( Visual Studio 2019 )禁用关闭浏览器窗口时停止调试器,停止调试时关闭浏览器".
  • (Visual Studio 2017) Disable "Stop debugger when browser window is closed".
  • (Visual Studio 2019) Disable "Stop debugger when browser window is closed, close browser when debugging stops".

这篇关于在VS 2017上停止调试时如何停止浏览器自动关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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