【问题标题】:vscode debug issues with Delve使用 Delve 的 vscode 调试问题
【发布时间】:2018-09-13 10:37:28
【问题描述】:
当我在 Visual Studio 代码中调试 Go Lang 代码时,出现以下错误消息:
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
【问题讨论】:
标签:
visual-studio-code
delve
【解决方案1】:
我尝试了下面的场景并且成功了..
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】:
我也有同样的事情。最新的 XCode 更新破坏了调试器 api 中的某些内容。 (我怀疑这只是 debugserver 的命令行标志的变化。)
目前,我所知道的最佳解决方案是卸载 XCode 或 XCode 命令行工具并为MacOS High Sierra 或MacOs Sierra 安装命令行工具 9.2。
在 XCode 或 Delve 中安装并在修复之前不要升级 XCode。