A core feature of Visual Studio that allows developers to inspect, analyze, and troubleshoot code during execution.
So should I open a separate project?
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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.
A core feature of Visual Studio that allows developers to inspect, analyze, and troubleshoot code during execution.
So should I open a separate project?
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.