Search code examples
c#debuggingvisual-studio-codevisual-studio-2022

Visual Studio 2022 does not "start" application when debugging multiple projects


I have got an issue with Visual Studio Code 2022. Sometimes - not always - when debugging multiple projects in the same solution, one or more applications do not start. When debugging console applications, VS opens a new coonsole window for each startup project.

Some of the console applications do not show any output. Moreover, the affected projects also do not hit any breakpoints at all.

This issue started with VS2022. The same code worked perfectly with VS2019. In the following screenshot it is shown the first Console.WriteLine did not even get executed (It looks to me as if main is never invoked). enter image description here

I have already checked if a breakpoint in another project blocks debugging, but that is not the case.


Solution

  • click on switch between available views and solutions which will show up project solution Icon, right click on the icon and update startup projects. VS 2022 locate startup project