Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vscode debug issues with Delve

When I am debugging Go Lang code in visual studio code the below error message occured:

2018/04/03 18:19:32 server.go:73: Using API v1
2018/04/03 18:19:32 debugger.go:98: launching process with args: [$GOPATH/src/about/debug]
could not launch process: EOF
Process exiting with code: 1
like image 737
Anupam Somani Avatar asked Apr 04 '18 01:04

Anupam Somani


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.

How do I debug .NET code in Visual Studio code?

Open the Debug view by selecting the Debugging icon on the left side menu. Select the green arrow at the top of the pane, next to . NET Core Launch (console). Other ways to start the program in debugging mode are by pressing F5 or choosing Run > Start Debugging from the menu.


2 Answers

I tried below scenario and It worked..

sudo rm -rf /Library/Developer/CommandLineTools

then go to page https://developer.apple.com/download/more/
download and install previous version

Command Line Tools (macOS 10.13) for Xcode 9.1 - Dec 6, 2017
like image 196
Anupam Somani Avatar answered Oct 10 '22 06:10

Anupam Somani


I had the same thing. The latest XCode update breaks something in the debugger api. (I suspect it's just a change in debugserver's command-line-flags.)

For now, the best solution I know of is to uninstall XCode or XCode Command Line tools and install Command Line Tools 9.2 for MacOS High Sierra or for MacOs Sierra.

Install, and don't upgrade XCode until there's a fix, either in XCode or Delve.

like image 38
bradobro Avatar answered Oct 10 '22 05:10

bradobro