Visual Studio website debugger stops running when you click a file link

Added: 3/20/2023 8:00 PM


Problem: When I click around the links on my website running in Visual Studio's debugger, everything works fine. But, when I click a certain link that has a FileResult, I'm not able to click any more links because the debugger has stopped itself. No errors or apparent reason. Reason: I guess either the browser or Visual Studio has a bug that makes VS think that the browser has closed when the File Save dialog box pops up, which signals VS to stop the debugging session. Workaround: Disable the setting that lets VS close the browser when you press Stop Debugging, or lets VS stop debugging when it detects the browser has closed. Tools > Options > Projects and Solutions > Web Projects > Stop Debugger when browser window is closed