Delve in golang is too low to debug

Time:2021-2-22

Problem description

在这里插入图片描述

analysis

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) github.com/go -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 github.com/go-delve/delve/cmd/dlv

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, […]