Visual Studio Delve 调试器的代码调试错误
Visual Studio Code Debug Error with Delve Debugger
在 Mac 机器上使用 Visual Studio 代码调试 Golang 时,或者如果您升级了 MacOS,您可能会看到以下错误:
debugserver or lldb-server not found: install XCode's command line tools or lldb-server
或
could not launch process: exec: "lldb-server": executable file not found in $PATH
如何使用 delve 解决 vscode 的调试问题?
通过执行以下命令安装命令行开发人员工具:
xcode-select --install
在 Mac 机器上使用 Visual Studio 代码调试 Golang 时,或者如果您升级了 MacOS,您可能会看到以下错误:
debugserver or lldb-server not found: install XCode's command line tools or lldb-server
或
could not launch process: exec: "lldb-server": executable file not found in $PATH
如何使用 delve 解决 vscode 的调试问题?
通过执行以下命令安装命令行开发人员工具:
xcode-select --install