How to stop browser closing automatically when you stop debugging on VS 2017

前端 未结 6 1794
天命终不由人
天命终不由人 2020-12-07 07:16

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

In VS 2015 it went like this:

Press start de

6条回答
  •  清歌不尽
    2020-12-07 07:22

    Visual Studio 2017 version 15.7 and higher & Visual Studio 2019 changed things again.

    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):

    Tools > Options > Debugging > General

    • Disable "Enable JavaScript debugging for ASP.NET (Chrome, Edge and IE)".

    Tools > Options > Projects and Solutions > Web Projects

    • (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".

提交回复
热议问题