Idea/goland go debug : version of delve is too old for this version of go.
terminal:
go get github.com/go-delve/delve/cmd/dlv
1、拿到最新的dlv.exe。位置在gopath的lib目录下的bin目录。
2、help > Edit Custom Properties:创建一个properties文件,输入
dlv.path=D:\go\go1.19.1\lib\bin\dlv.exe
3、最后重启IDE
你应当热爱自由!
作者:Leejk,转载请注明原文链接:https://www.cnblogs.com/leejk/p/16882366.html