Stop Visual studio debugger when closing Chrome - asp.net

After looking all over the web for solution, I give up.
Is it possible to make chrome close when you stop the debugger and make the debugger stop when you close chrome, like it does with IE?
Maybe there is an addin that does this?
I'm using both vs 2010 and 2013.
Thanks.

Only Internet Explorer can do this, as it's both a Microsoft product. Since Chrome has no direct access to Visual Studio it would be weird if Chrome could cut down the IIS process which is running on your PC.
If you like to see the "Stop debug behavior" you should use Internet Explorer as debug browser.
Stop debugging Visual Studio 2013 when browser closes

Related

Launching Google Chrome from within Visual Studio

I'm pulling my hair out over this since I'm already searching for a solution on it for a few days.
The problem is that when no instance of Chrome is currently opened and I press the Google Chrome Button to launch my web application, Chrome opens a new window on a gray screen. I can't load any pages, not even the settings page. It only occures when I do it from Visual Studio in Administrator mode. When an active instance of chrome is already opened, it will successfully open on that instance in a new tab. When I open the Chrome exe in the program files or via my desktop shortcut, it also works fine. It seems to only occur when launched from within VS administrator modus.
Steps to reproduce in my case:
Open VS in Administrator
Close all instances of Chrome
Launch web application in Chrome
New Chrome window opens with unresponsive gray screen:
Screenshot of the result
I've already tried:
Repairing VS
Reinstalling Chrome
Anyone already encountered this problem and has a solution?
Cheers
I had the same issue for a day or so and was really getting on my nerves!
I tried a few things:
Loading Chrome in Administrator mode (didn't work)
Loading Chrome independently, i.e. not getting Visual Studio to debug directly in Chrome, then pointing it to my app (didn't work)
Setting Chrome to always run in Admin mode (didn't work)
Finally I set Chrome's Compatibility settings to run Windows 8 and it seems to work now! Even from VS firing it directly into Debug mode.
I'm running
Windows Server 2012 R2
Visual Studio 2015 Pro
It's worth noting this issue NEVER happened in Visual Studio 2013 Community.
Hope that helps
Chrome compatibility settings

VS2015Community (ASP.net Webapplication): Debugger does not stop himself after closing Edge

created a new web application with one webform for testing. have windows 10, visual studio 2015 community edition.
if i use internet explorer to open/debug the project and just CLOSE the internet explorer, then my debugger in visual studio does stop.
if i use edge to open/debug the project and then CLOSE the edge, my debugger keeps running.
bug? can i reach that the debugger also will stop when closing EDGE?

Limited browser functionality when developing in Windows 8

Has anyone else run into this problem and resolved it?
I am developing with Visual Studio 2010 in a clean install of RTM of Windows 8. While developing an ASP.NET application and RUNNING it with the Debugger Attached, I can not click on HTML links in ANY application and have it open up a browser window.
I will be running(debugging through VS) my application in Firefox, and I can't click on links sent in Google Talk or Outlook.
If I stop the application from running, I can then click on those links.
I have also seen that while debugging, I am using jQuery Drag-N-Drop HTML 5 functionality in my application. I can't use that functionality while it is running under the debugger, it just doesn't work. This happens with all browsers (Chrome, Firefox and IE). But if I stop debugging, and run it without the debugger on, it then works.
Any ideas?
Try to disable the debuging for "Javascript" in Visual Studio 2012.

Visual Studio 2012 Web Publish on Windows 8 RTM Fails Browser Launch

I'm developing an ASP.NET MVC 4 site using Visual Studio 2012 Premium on Windows 8 RTM x64. When I right click on the web application and choose Publish, Visual Studio 2012 returns the message:
"fail to open url of 'http://.../'.
Exception:Class not registered"
The publish process seems to work correctly but it fails to launch the browser. This happens every time I try to Publish the site and it happens with Chrome (21.0.1180.79 m) or Firefox (14.0.1).
Furthermore, since the site isn't launching post Publish, I do it manually using Ctrl-F5. I'm able to navigate around the site normally, but if I right click on the browser's icon on the task bar to launch another browser instance, nothing happens. Once I close all browser instances, the browser task bar icon reverts to its normal behavior.
I'm not sure if these two issues are related, but the common theme here is launching a browser from Visual Studio 2012 causes unexpected side effects. The browser either fails to launch on Publish or launches with Ctrl-F5 but renders launching another instance useless using the task bar icon.
Any help is appreciated.
EDIT: I've re-installed the entire software stack (Windows 8, Office 2010, Visual Studio 2012, Windows Update, Chrome, Firefox). The above issues continue, unless I make Internet Explorer the default browser.
Thanks.
I filed a Chrome bug, it was a browser registration thing. If you uninstall and reinstall from a Download and be SURE to say Yes to the UAC prompt, Chrome will register Machine Wide, rather than User. That is required to launch as Admin. (HKLM vs. HKCU)
It appears this problem is much more widespread than the Web Publish operation. Anytime you use the ShellExecute() API (or Process.Start) to access a URL it fails when running under elevated rights (ie. Run As Administrator).
I see this in any application that uses Process.Start() or ShellExecute(). When UAC is on and I run it normally under the UAC account everything works and the browser opens. Run with "Run As Administrator" it fails. It's easy to test.
Not sure if this is a bug in the OS, or whether Microsoft deems this as a security 'feature'.
FWIW, some people have mentioned the setting IE as the default browser works, but it doesn't work for me. Basically no links work if I've elevated rights. This has actually broken quite a few administrative applications we use in the back office for administration.

how to enable script debugging in visual studio 2008 when using Firefox

I'm using Firefox as my default browser and I'm trying to debug java script in side asp.net page visual studio 2008 with Firefox browser.
how to enable script debugging in visual studio 2008 when using Firefox?
by the way, I installed JavaScript Debugger plug-in for Firefox.
Unfortunately there's no way to attach to a non-IE browser in Visual Studio unless someone knows of a trick I don't. You'll want to either use the infinitely useful Firebug Extension for Firefox or the more feature rich Venkman debugger.
I have had issues with scripts being cached in FF while you're developing, so I would suggest making frequent use of the [CTRL][SHIFT] + Delete shortcut to clear your cache. Another trick I use is to insert
debugger;
into your script where you want to make sure you break into the debugger. I'm sure this works in Firebug and may also in Venkman.
Happy debugging.

Resources