Visual Studio 2022 debugging mode unavailable

Yağız Atilla Aktaş 0 Reputation points
2023-05-11T21:07:52.4533333+00:00

Hello everybody, I have an problem...

There should be "debug" and "any cpu" options where I circled, but there is no option, I can't debug either.

I need a solution.

Visual Studio 2022, 17.5.5 version.

User's image

Developer technologies Visual Studio Debugging
Developer technologies Visual Studio Other
{count} votes

1 answer

Sort by: Most helpful
  1. David Lowndes 4,726 Reputation points
    2023-05-11T22:21:09.2466667+00:00

    It looks like you've just created a single standalone .cs file. VS needs a "project" to build.
    Start again by using the File, New Project option and choose the Console App (C#).

    1 person found this answer helpful.
    0 comments No comments

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.