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.
Why I can not find the debugger option of ".NET 5+ and .NET Core."
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.
- Open the Run menu.
- On the Run menu, select Add Configuration.
- To choose the debugger option for your console app, select .NET 5+ and .NET Core.
Developer technologies Visual Studio Debugging
2 answers
Sort by: Most helpful
-
-
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.