step1: 下载
在Go官网下载windows安装包
https://golang.org/dl/ 选择windows安装包
setp2: 安装
按照默认选项安装
*配置环境变量
: 变量名 | 变量值
:---------- | ------- :
: GOOS | windows
: GOROOT | C:\GO\
setp3:debug调试
在命令行中执行
go get github.com/derekparker/delve/cmd/dlv
注:遇到的问题
cd C:\Users\progr\go\src\github.com\derekparker\delve; git pull –ff-only There is no tracking information for the current branch. Please specify which branch you want to merge with.
需要删除C:\Users\progr\go\src\github.com内的derekparker,之后重新执行命令
所有的过程尽量在有VPN的进行操作。