Debugging GO on VSCode with Delve

I want to debug GoLang in a VSCode editor. In their documentation, they say it is possible. I use the following link to set up debugging features in the IDE. https://marketplace.visualstudio.com/items?itemName=lukehoban.Go

And to install Delve, they are asked to follow these instructions https://github.com/derekparker/delve/blob/master/Documentation/installation/windows/install.md

After installation is complete, they will ask you to run the following code

$ mingw32-make install

But there is a mistake

mingw32-make: *** There is no rule to install "install". Stop.

Does anyone know what happened to this? Has anything changed other than these instructions?

+5
source share
2 answers

I managed to solve this problem. You do not want to install mingw for this. Instead, run this code and make sure dlv.exe is created in any directory that is located in your PATH variable on your computer.

$go get -u github.com/derekparker/delve/cmd/dlv 

I also recorded Golang debugging using VSCode and Delve. If you are interested, you can read it here .

+5
source

Run the mingw32-make install command from the directory created by git clone https://github.com/derekparker/delve .

+1
source

Source: https://habr.com/ru/post/1247847/


All Articles