visual-studiogoogle-chrome

Visual Studio closes all browser windows


A few days I ran into this weird behaviour: every time I stop debugging a web app VS closes all browser windows (all Chrome or all Edge), not just the window it started. In addition, it doesn't matter if I opened them before or after I started debugging.

I updated Visual Studio 2022 to the newest version (17.14.2) but I still have the weird behaviour.

How can I fix this problem?


Solution

  • Update the Chrome to latest version (137.0.7151.104) have solved the problem for me. It will no longer close the chrome when debugging is stopped from Visual Studio after this update.

    image showing Chrome is updated to v137.0.7151.104

    Reference: https://www.reddit.com/r/VisualStudio/comments/1l52ssj/bug_stop_debugging_closes_all_browserstabs/