我用IDEA調試了一個go程序,但是因為報錯退出了:Version of Delve is too old for this version of Go (maximum supported version 1.13, suppress this error with --check-go-version=false)我該如何添加--check-go-version=false?
2 回答

眼眸繁星
TA貢獻1873條經驗 獲得超9個贊
您可以添加lunch.json.
example:
{
"version": "0.2.0",
"configurations": [
{
"name": "DebugServer",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceFolder}",
"dlvFlags": ["--check-go-version=false"]
}
]
}

呼啦一陣風
TA貢獻1802條經驗 獲得超6個贊
將 GoLand 升級到 2019.2.2 或更高版本,問題將得到解決。這不是 Delve 問題,它是由我們 JetBrains 將 Delve 嵌入 IDE 造成的。
- 2 回答
- 0 關注
- 1344 瀏覽
添加回答
舉報
0/150
提交
取消