Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When debugging an ASP.NET Application, how to end debug session when Firefox closes?

I am going to set Mozilla Firefox as my default web browser to .net applications. The problem is that the application keep on running mode even I close the browser window. Its not the same with IE.

For certain reasons I have to use Fire Fox instead of IE.

Is there any way to close the application (stop) when the Firefox window is closed (not by explicitly hitting the stop button on the project window)?

Update

I do agree with all of you but the thing is that happened with IE can't be with any other browser. I am looking for some settings/option so that it will kill the process as soon as the Firefox window is closed.

like image 771
Ankur Avatar asked Jul 23 '09 12:07

Ankur


People also ask

How do you stop browser closing automatically when you stop debugging in eclipse?

To find this setting, open the Visual Studio Options dialog from Tools menu and select Options. From there, locate Web Projects from the Projects and Solutions navigation tree. Now untick the option box that says "Stop debugger when browser window is closed, close browser window when debugger stops."

How do I stop Visual Studio from opening my browser?

Go to Project Properties > Debug > Uncheck "Launch Browser" > Save. Save this answer.


1 Answers

Configure you Web Application project's Start Action to "Start external program", point it to firefox, set command line arguments to your site. E.g.

Start external program: C:\Program Files\Mozilla Firefox\firefox.exe
Command line arguments: http://localhost:8888/

Does this fit your needs?

like image 161
Juozas Kontvainis Avatar answered Oct 16 '22 01:10

Juozas Kontvainis