gpt4 book ai didi

Go 调试适配器进程在 VS 代码中意外终止

转载 作者:数据小太阳 更新时间:2023-10-29 03:36:57 25 4
gpt4 key购买 nike

关于这个主题有一个 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
}

最佳答案

问题源于项目目录更改。更改项目文件夹后,重新安装 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

关于Go 调试适配器进程在 VS 代码中意外终止,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49878749/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com