Problems debugging vscode with Delve

When I debug Go Lang code in Visual Studio code, the following error message appears:

2018/04/03 18:19:32 server.go:73: Using API v1 2018/04/03 18:19:32 debugger.go:98: launching process with args: [$GOPATH/src/about/debug] could not launch process: EOF Process exiting with code: 1 
+5
source share
2 answers

I had the same thing. The latest Xcode update breaks something in the api debugger. (I suspect this is just a change in the debugserver command flags.)

Currently, the best solution I know is to uninstall the Xcode or Xcode command-line tools and install the 9.2 command-line tools for MacOS High Sierra or for MacOs Sierra .

Install and do not update Xcode until it is fixed in either Xcode or Delve.

+1
source

I tried the below script and it worked.

 sudo rm -rf /Library/Developer/CommandLineTools then go to page https://developer.apple.com/download/more/ download and install previous version Command Line Tools (macOS 10.13) for Xcode 9.1 - Dec 6, 2017 
+1
source

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


All Articles