When I close the browser launched by Visual Studio 2017, debugging an ASP.NET application with F5, the debug session ends
Why?
Please go to Tools-Options-Projects and Solutions-Web Projects and uncheck the option "Stop debugger when browser window is closed, close browser when debugging stops" to have a try.