Hi,when I start to use dlv to debug the go program. It shows the message means my go version is too old. My go version is 1.17.1 and my dlv version is 1.20.1. So I download the go1.19 and set the path environment. Now my go version is 1.19 and when I use dlv to debug, it also shows
Go version 1.17.6 is too old for this version of Delve (minimum supported version 1.18, suppress this error with --check-go-version=false)
can somebody help me out!
I have changed the golang to version1.19 but the message shows "Go version 1.17.6 is too old", but I did download the 1.19 golang and set the path environment.
if you use vscode,you can add '"dlvFlags": ["--check-go-version=false"]' in launch.json
launch.json :
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Package",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}",
"dlvFlags": ["--check-go-version=false"]
}
]
}
I have same problem, and I have solved it by replacing the DLV bound to Goland with a 1.8.0 support Golang 1.16 DLV version.
download an older dlv version supporting your golang version, such as: my golang is 1.16 and dlv use this delve1.8.0
complie dlv:
cd <downloadDir>/cmd/dlv
go build
Help > Edit Custom Properities...
, and adddlv.path=<yourPath>/cmd/dlv/dlv
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With