How to fix Visual studio community 2022 Console App Debugging not green

Hmm 0 Reputation points
2023-09-02T01:18:36.7566667+00:00

The little thing that starts debugging is gray and I can only attach not debug when I press f5 it open a thing saying what do you want to debug with when I press c# nothing happens I have restarted vs I have repaired vs I have tried deleting vs and downloading it again also I have

.Net and C# as my extension

Developer technologies | Visual Studio | Debugging
Developer technologies | Visual Studio | Other
Developer technologies | C#
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2023-09-04T03:19:49.7066667+00:00

    Hi @Hmm, 

    Welcome to Microsoft Q&A! 

    Does it occur in specific project or all C# Console App?

    Please make sure that you open a project, not just a .cs file. 

    If you have multiple projects in the solution, please go to Solution Explorer > right-click on project node > Set as Startup Project

    Meanwhile, please check your System Environment variables and ensure that the Path to dotnet: C:\Program Files\dotnet, not C:\Porgram Files (x86)\dotnet.  

    If it persists, please share us some screenshots in order to investigate it further. 

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    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.