Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2017 15.7 New Chrome Window when debugging

Just updated to 15.7 and now when I begin debugging Chrome opens in new window.

My JS debugging is off (tried turning it on and back off) and unlike when it's on the new window is under my standard Chrome profile. However If I snap the chrome window into my other window debugging ends immediately.

Any ideas on how to correct this?

like image 648
Jason Tucker Avatar asked May 08 '18 13:05

Jason Tucker


People also ask

How do I get the debug window in Visual Studio?

To enable the Debug Location toolbar, click in an empty part of the toolbar area and select Debug Location from the dropdown, or select View > Toolbars > Debug Location. Set a breakpoint and start debugging. When the breakpoint is hit, execution pauses and you can see the location in the Debug Location toolbar.

How do I make Visual Studio open in Chrome?

For the new versions of Visual studio, click on the dropdown next to the dropdown of "IIS Express". Now simply choose Browse With and choose Google Chrome, and click Set as default . I hope it helps!!

How do I use VS code debugger in Chrome?

To debug any project in either Chrome or Microsoft Edge, all you need to do is to start a session by pressing F5 or activating the debug icon in the menu bar and selecting “Run and debug”. Alternatively, you can also use the Visual Studio Code command palette and run the “Debug: Open Link” command.


2 Answers

In Visual Studio 2017 version 15.7.1 you can do the following:

Tools > Options > Projects and Solutions > Web Projects, uncheck Stop debugger when browser window is closed.

Screenshot

like image 182
Marcel Posdijk Avatar answered Oct 13 '22 19:10

Marcel Posdijk


See comments from Hans about posted fix in the Pre-release version that has yet to be released.

My workaround, because the debugger would randomly stop when using the new window, was to set the project to not open a webpage and then open the site via the IIS icon in the taskbar.

like image 43
Jason Tucker Avatar answered Oct 13 '22 18:10

Jason Tucker