vscode debug issues with Delve

梦想与她 提交于 2019-12-12 10:44:30

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!