Doraemon

小叮当    2012 - 2023
Doraemon

Choose mode

  • dark
  • auto
  • light
首页
Category
  • 前端开发
  • 后端
  • 数据库
  • 运维
Tag
TimeLine
关于
  • 关于我
Contact
  • GitHub
author-avatar

小叮当

39

Article

25

Tag

首页
Category
  • 前端开发
  • 后端
  • 数据库
  • 运维
Tag
TimeLine
关于
  • 关于我
Contact
  • GitHub

使用VS Code开发.NET Core 0003 - 之程序调试

小叮当    2012 - 2023

使用VS Code开发.NET Core 0003 - 之程序调试


小叮当 2020-11-14 .Net Core后端Dot-net-with-vs-code

# 一、添加 localhost 信任证书

dotnet dev-certs https --trust
1

其他方式:mkcert

# 二、配置 VS Code 调试环境

1、在 VS Code 侧边的菜单找到 Debug 图标,点击create a launch.json file., 然后会生成如下两个文件tasks.json、launch.json

2、节点介绍:(这里主要是 configurations 节点下)

  • program: 这里表示程序 build 以后生成的 dll,默认是 bin\Debug\框架\项目名称.dll

  • args:用样式参数,这个参数可以传递到程序里

  • cwd:代码的目录

  • 一、添加 localhost 信任证书
  • 二、配置 VS Code 调试环境