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 .
source share