关于这个问题有一个github问题。我无法从这个github问题中找到任何线索。 (https://github.com/Microsoft/vscode-go/issues/1052) 我重新安装了vscode go extension和delve。我控制了所有环境设置。但我还没有解决问题。
有关调试可能出错的建议吗?
VS Code version: 1.22.2
Go version: 1.9.1
Go VS Code Extension: 0.6.78
Window 10 Pro x64
"configurations": [ {
"name": "Delve",
"type": "go",
"request": "launch",
"mode": "debug",
"remotePath": "",
"host": "127.0.0.1",
"program": "E:/Qlass/goserv/src/",
"args": [],
"showLog": true
}
答案 0 :(得分:0)
问题源于项目目录更改。 更改项目的文件夹后,重新安装VS Code中的所有go工具以运行调试程序。
Installing 16 tools at E:\Qlass\goserv\bin
gocode
gopkgs
go-outline
go-symbols
guru
gorename
gomodifytags
goplay
impl
fillstruct
godef
godoc
goreturns
golint
gotests
dlv