Delve in golang is too low to debug


Problem description



This is due to the low version of the local delve component. In 2019.2.1, GoLand supports go 1.13 by default

Check if there is a problem in the directory F: (go (gopath directory) -Delve / delve / CMD / DLV, and it also exists in the bin directory dlv.exe File, executed from the command line dlv.exe Version gets Version 1.2.1


terms of settlement

Update DLV

Because it already exists locally, you need to use the – U parameter to force the update package and dependency

go get -u

Set up GoLand

Open hele > Edit customer properties. If the prompt file does not exist, click create. Then add a new line dlv.path=D :/Go_ WorkSpace/bin/ dlv.exe Just restart


After restart, debug OK:


So far, this article about the problem that delve version in golang is too low to debug is introduced here. For more related content that golang cannot debug, please search previous articles of developer or continue to browse the following related articles. I hope you can support developer more in the future!

Recommended Today

Redis design and implementation 4: Dictionary Dict

In redis, the dictionary is the infrastructure. Redis database data, expiration time and hash type all take the dictionary as the underlying structure. Structure of dictionary Hashtable The implementation code of hash table is as follows:dict.h/dictht The dictionary of redis is implemented in the form of hash table. typedef struct dictht { //Hash table array, […]