问题
When I am debugging Go Lang code in visual studio code the below error message occured:
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
回答1:
I tried below scenario 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
回答2:
I had the same thing. The latest XCode update breaks something in the debugger api. (I suspect it's just a change in debugserver
's command-line-flags.)
For now, the best solution I know of is to uninstall XCode or XCode Command Line tools and install Command Line Tools 9.2 for MacOS High Sierra or for MacOs Sierra.
Install, and don't upgrade XCode until there's a fix, either in XCode or Delve.
来源:https://stackoverflow.com/questions/49641302/vscode-debug-issues-with-delve