problem:
When vscode installs tools, the DLV tool always reports an error. The error message is LD return 1;
Solution:
I checked the GitHub of DLV and found that CGO_Enabled can be disabled to solve this problem
go env -w CGO_ENABLED="0"
problem:
When vscode installs tools, the DLV tool always reports an error. The error message is LD return 1;
Solution:
I checked the GitHub of DLV and found that CGO_Enabled can be disabled to solve this problem
go env -w CGO_ENABLED="0"