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.

Developer technologies | Visual Studio | Debugging
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Michael Taylor 61,096 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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.