Search code examples
visual-studio-codedelve

Visual Studio Code Debug Error with Delve Debugger


When debugging Golang on Mac machine using Visual Studio Code, or if you Upgraded your MacOS, you may see the following errors:

debugserver or lldb-server not found: install XCode's command line tools or lldb-server

or

could not launch process: exec: "lldb-server": executable file not found in $PATH

How to solve those debugging issues of vscode with delve?


Solution

  • Install command line developer tools by executing the following command:

    xcode-select --install