You'll need to provide us more information. At a minimum please identify what language you're using. Also please confirm that you're actually opening a project and not just opening a random source file. Screenshots are helpful here. VS will only debug files in projects that are open and it'll only compile and debug (by default) the startup project and any dependent project.
visual studio debugging
Merve
1
Reputation point
I am using visual studio 2022. But I am having debugging problem. It constantly compiles and runs the previous code file. It does not compile the source code file I just opened.
2 answers
Sort by: Most helpful
-
-
Merve 1 Reputation point
2022-06-08T17:29:41.147+00:00 So should I open a separate project?