Sam
Sam

Reputation: 30388

VS used to open browser in new tab, now opens new browser

I've been updating to the latest version of Visual Studio Preview and I think a setting has been changed.

When I start debugging an ASP.NET web app in Visual Studio 2017 15.7.0 Preview 4, VS opens a new browser.

I've had a similar issue before and it was a setting. This time it's not that setting. As you can see below, my Chrome debugging is already unchecked. enter image description here

I'm also aware of the check box to "Launch Browser" under Project -> Properties.

If I uncheck that no browser is opened. The previous behavior which I really liked was to open a new tab in my default browser i.e. Chrome.

How do I restore that behavior? I'd like VS to automatically open a new tab in Chrome and if I have no browser open, only then it should open up a new browser.

Upvotes: 29

Views: 7312

Answers (1)

KingKerosin
KingKerosin

Reputation: 3841

After updating Visual Studio to the latest version 15.7.0 I ran into the same issue. In my case each time I debugged my project it opens up two new instances of Chrome. As this was not annoying enough, each time I was moving the window to my second screen, the debug-session stopped immediately.

I've searched the Visual Studio options for browser and found a setting called

Stop debugger when browser window is closed

which could be found under Projects and Solutions -> Web Projects. I unchecked this setting and et voilà the next debug-session started as tabs in my already running browser-instance.

As I am not sure if this is a bug introduced with this Visual Studio version, this may change again in any next release. So this setting may be reverted in case of any unexpected behavior.

Update

Seems like version 15.8.5 still has this issue/behavior.

Upvotes: 50

Related Questions