Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio will stop debugging when selecting "Choose File" in Chrome

Visual Studio 2017 - 15.8.4 (but happens on previous versions), Windows 7, IIS Express 64. Chrome 64 (Latest when posting).

When I launch Chrome for debugging from within Visual Studio, debugging works fine until I hit "Choose File" to browse a file for upload and selecting a file (not uploading it, just selecting it). Visual Studio debugger will immediately stop without giving any reason.

When using IE's "Browse..." button and selecting a file, which is the equivalent of the same Chrome HTML element, everything is working as expected.

My hunch is that Chrome is trying to do an extra socket connection which is upsetting IIS Express and triggering VS to stop debugging.

Do you know any solution to keep debug running as expected, on Chrome?

like image 282
Adam Avatar asked Sep 12 '18 14:09

Adam


People also ask

How to stop debugging in Google Chrome?

Opening Developer Tools in Chrome Stops the Script Debugging Session As you can see while I was switching to Developer tools in Google Chrome at debug session, the application stops debugging. Go to Tools -> Options -> Debugging -> General and...

How do I debug Visual Studio Code in chrome?

When you press F5, the “start debugging” command, Visual Studio automatically launches a web server to serve your module (if necessary) along with an instance of Chrome that runs your Native Client module, and also attaches an appropriate debugger. You can switch between platforms as you work to compare the behavior of your code.

How do I stop debugging in Visual Studio?

The first way to stop debugging is with the ‘Stop Debugging’ command ( ; Shift + F5) from the ‘Debug’ toolbar: We can also use the ‘Debug’ menu and choose ‘Stop Debugging’: Note that debugging also stops when our program ends. To have our program continue under the debugger,...

How to set as default debugging browser in Visual Studio?

Set Google Chrome as the Debugging Browser in Visual Studio. Click on the arrow near by start button there you will get list of browser. Select the browser you want your application to be run with and click on "Set as Default" Click ok and you are done with this.


1 Answers

I just stumbled over the same error and for me, it was because I have AVG antivirus installed, and because it starts the debugging in an AVG Secured Chrome instance. I just changed it to normal Chrome, and it stopped exiting debug-mode. Hope it helps!

like image 122
Matias Jakobsen Avatar answered Sep 21 '22 09:09

Matias Jakobsen