Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 251
Abdisamad Khalif Avatar asked Oct 04 '18 06:10

Abdisamad Khalif


People also ask

Why is my debugger not working in Vscode?

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.

What is delve debugger?

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.


1 Answers

Install command line developer tools by executing the following command:

xcode-select --install
like image 79
Abdisamad Khalif Avatar answered Oct 10 '22 07:10

Abdisamad Khalif