vs code调试netcore

-- 常用命令:
vscode dotnet命令

还原依赖

dotnet restore

调试编译

dotnet build

正式发布

dotnet publish -c Release

独立包(自带运行时)

dotnet publish -c Release --self-contained true
dotnet run

调试操作
断点:代码行左侧单击红点打断点
F5:启动调试
F11:单步进入函数
F10:单步跳过
Shift+F11:跳出当前方法
Ctrl+Shift+F5:重启调试

posted @ 2026-06-04 08:40  过错  阅读(4)  评论(0)    收藏  举报