Keep Visual Studio debugger ON when the browser is closed

Keep Visual Studio debugger ON when the browser is closed

We can Keep Visual Studio debugger ON, even when the project output browser is closed. When we work with Web Projects, as soon as we close the web browser window, Visual Studio stopped the debugger. Durning that time you may be interested to see some old debugging data or other traces.  However, as you closed the browser, Visual Studio stopped the debugging session. Many time, this could be as expected, however, some cases we want debugging session to be alive or and continue the debugging.  Well, Visual Studio allows us to take a control on that. Let’s have a look at how we can achieve that.

Keep Visual Studio debugger ON / OFF

  • Open the Visual Studio  Option Dialog Window.
  •  Search for Web Projects options, and you will find “Stop debugger when browser is closed

Keep Visual Studio debugger on

Related Tips:  10 Effective Debugging Tips for .NET Developer

If the “Stop debugger when browser is closed” checked, Visual Studio will terminate the debugger as soon as you close the browser. When it is unchecked, Visual Studio will keep running the debugging session.  As long as the debugging session is on, you can open your web project on the browser and restart debugging of your application.

Abhijit Jana

Abhijit runs the Daily .NET Tips. He started this site with a vision to have a single knowledge base of .NET tips and tricks and share post that can quickly help any developers . He is a Former Microsoft ASP.NET MVP, CodeProject MVP, Mentor, Speaker, Author, Technology Evangelist and presently working as a .NET Consultant. He blogs at , you can follow him @AbhijitJana . He is the author of book Kinect for Windows SDK Programming Guide.