使用Delve调试器的Visual Studio代码调试错误

Abd*_*lif 2 visual-studio-code delve

在使用Visual Studio Code在Mac机器上调试Golang时,或者在升级MacOS时,您可能会看到以下错误:

debugserver or lldb-server not found: install XCode's command line tools or lldb-server
Run Code Online (Sandbox Code Playgroud)

要么

could not launch process: exec: "lldb-server": executable file not found in $PATH
Run Code Online (Sandbox Code Playgroud)

如何用delve解决vscode的调试问题?

Abd*_*lif 6

通过执行以下命令来安装命令行开发人员工具:

xcode-select --install
Run Code Online (Sandbox Code Playgroud)