Knowledge - Details


Visual Studio website debugger stops running when you click a file link
Date Added: 3/21/2023

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



Back to List

Disclaimer: Everything on this website is written for my own use. I disclaim any guarantees that the procedures and advice listed here are accurate, safe, or beneficial for anyone else. If you attempt to follow any procedures or advice shared here, you do it at your own risk. Part of IT work is knowing how to recover from problems.