Why I can not find the debugger option of ".NET 5+ and .NET Core."

Liping Lin 0 Reputation points
2023-10-17T03:05:50.6866667+00:00

I am following the instructions below in a .cs file & trying to launch the debugger. However I can not find the option for .NET 5+ and .NET Core. Please help.

  1. Open the Run menu.
  2. On the Run menu, select Add Configuration.
  3. To choose the debugger option for your console app, select .NET 5+ and .NET Core.
Developer technologies Visual Studio Debugging
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Viorel 122.6K Reputation points
    2023-10-17T04:54:49.03+00:00

    The instructions are probably for Visual Studio Code, but you are using Visual Studio, where you can press <F10> to start debugging, or select a command from DEBUG menu.


  2. Tianyu Sun-MSFT 34,436 Reputation points Microsoft External Staff
    2023-10-17T08:05:19.53+00:00

    Hi @Liping Lin ,

    Welcome to Microsoft Q&A forum.

    Please first confirm if you are using Visual Studio(VS) or Visual Studio Code(VS Code).

    The instructions you are following should be for VS Code.

    If you are using VS Code, and you didn’t find the .NET 5+ and .NET Core option, then please keep VS Code open and try again. Click Run, select Add Configuration and check if this time, the .NET 5+ and .NET Core option appears.

    If you are using VS, please check Viorel’s answer.

    Best Regards,

    Tianyu


    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.


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.