Problem Description
I recently upgraded Golang to 1.14, and suddenly found that the Goland editor cannot debug the program, and the following error will be reported:
Version of Go is too old for this version of Delve (minimum supported version 1.13, suppress this error with --check-go-version=false)
Solution
- First, update the native delve component (directly open the cmd operation, not in the project)
go get github.com/go-delve/delve/cmd/dlv
If there is a problem with the operation, you can refer to the author's documentation: https://github.com/derekparker/delve/blob/master/Documentation/installation/windows/install.md
-
Then, find the downloaded delve, the default storage address is: %GOROOT%/bin/delve/dlv.exe
-
Set up Goland
- Open in turn: Help->Edit Customer Properties; if the file does not exist, click Create.
- Add in the file: dlv.path=your dlv path (windows path needs to be escaped)
- Finally, just restart Goland (the first restart after just configuring will be slower)