### Description Debugging a .NET 9 application with Visual Studio can randomly end up freezing the debuggee. See [this issue](https://developercommunity.visualstudio.com/t/VS2022-1712-Program-freezes-when-debu/10834051) ### Reproduction Steps Debug an application with many threads that exit while trying to step through code. ### Expected behavior Debuggee does not freeze. ### Actual behavior Debuggee gets stuck with the runtime waiting for all threads to synchronize, but one of the threads being waited has exited so it will never complete. ### Regression? _No response_ ### Known Workarounds _No response_ ### Configuration _No response_ ### Other information _No response_