安装

  1. go get github.com/go-delve/delve

调试命令

  1. dlv debug main.go

常用命令

help

b main.main 设置断点
c 执行到断点
s 下一行

文档更新时间: 2022-12-05 15:05   作者:张尚