visual studio debugging

Merve 1 Reputation point
2022-06-08T15:19:32.24+00:00

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.

Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
1,002 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Michael Taylor 54,646 Reputation points
    2022-06-08T15:46:53.217+00:00

    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.


  2. Merve 1 Reputation point
    2022-06-08T17:29:41.147+00:00

    So should I open a separate project?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.