vscode debug issues with Delve

2019-06-18 16:13发布

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

2条回答
Viruses.
2楼-- · 2019-06-18 16:28

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.

查看更多
贪生不怕死
3楼-- · 2019-06-18 16:45

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
查看更多
登录 后发表回答