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?
The most common problem is that you did not set up launch.json or there is a syntax error in that file. Alternatively, you might need to open a folder, since no-folder debugging does not support launch configurations.
Delve is a debugger for the Go programming language. The goal of the project is to provide a simple, full featured debugging tool for Go. Delve should be easy to invoke and easy to use.
Install command line developer tools by executing the following command:
xcode-select --install
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With