I already have a window open with the web site I'm debugging. I don't need VS to launch another one for me every time I need to debug.
Is there a way to stop this behavior?
I already have a window open with the web site I'm debugging. I don't need VS to launch another one for me every time I need to debug.
Is there a way to stop this behavior?
As I did not had the mentioned option in my VS which is Visual Studio Enterprise 2017, I had to look for some other option.
Here is it what I've found:
Go to Tools -> Options -> Debugging tab(General) and uncheck "Enable JavaScript debugging for Asp.Net(Chrome and IE).
In an ASP.Net 5 project this can now be set for each launch profile.
Open the file launchsettings.json under the Startup Project Properties folder and add
"launchBrowser": false
to the profile you are configuring, such as in:For VS 15.7.1
Tools
→Options
→Projects and Solutions
→Web Projects
→ uncheckStop debugger when browser window is closed
.You can right click on your project, then choose
Properties
, onDebug
tab you should unchecklaunch browser
checkbox.When you first open a web/app project, do a Ctrl-F5, which is the shortcut for starting the application without debugging. Then when you subsequently hit F5 and launch the debugger, it will use that instance of IE. Then stop and start the debugging in Visual Studio instead of closing IE.
It works on my machines. I'm using the built in dev web server. Don't know if that makes a difference.
Firefox will also stay open so you can debug in either or both at the same time.
Updated answer for a .NET Core Web Api project...
Untick the 'Launch browser' checkbox (enabled by default).