Home  >  Article  >  Development Tools  >  How to debug and run c# programs with vscode

How to debug and run c# programs with vscode

王林
王林Original
2019-12-31 14:31:336049browse

How to debug and run c# programs with vscode

Prerequisites:

Install .NET Core SDK

Install vscode

Steps:

Install c #extension plug-in

How to debug and run c# programs with vscode

Create the first project and manually create the workspace folder

How to debug and run c# programs with vscode

Use shortcut keys in vscode CTRL K CTRL OSelect the folder you just created

How to debug and run c# programs with vscode

Use the shortcut key CTRL SHIFIT Y to open the console

How to debug and run c# programs with vscode

Use The following command creates a basic program in the open terminal for restore

dotnet new console --name test_proj1

How to debug and run c# programs with vscode

Press F5 to run the program and select the compiler .NET Core. If prompted, add Key points of the plug-in yes

How to debug and run c# programs with vscode

Then two json files appeared

How to debug and run c# programs with vscode

These two files are helpful for using visual Studio code refactoring and debugging applications.

Now modify the program.cs file and run the program on the console

How to debug and run c# programs with vscode

It runs successfully.

Tip: How to use the vscode-solution-explorer solution manager plug-in in Visual Studio Code

How to debug and run c# programs with vscode

Recommended related article tutorials: vscode tutorial

The above is the detailed content of How to debug and run c# programs with vscode. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn