Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Cannot get Delve to work with VSCode anymore #1278

Closed
carlca opened this issue Oct 13, 2017 · 1 comment
Closed

Cannot get Delve to work with VSCode anymore #1278

carlca opened this issue Oct 13, 2017 · 1 comment

Comments

@carlca
Copy link

carlca commented Oct 13, 2017

VSCode Insiders 1.18.0
macOS 10.13.0 High Sierra
Delve Version: 1.0.0-rc.1
Golang 1.9.1

Hello, I no longer seem to be able to debug my Golang code using Delve. It used to work but after a few new versions of VSCode, something's gone wrong. My launch.json is as follows:

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [        
        {
            "name": "Launch",
            "type": "go",
            "request": "launch",
            "mode": "debug",
            "remotePath": "",
            "port": 2345,
            "host": "127.0.0.1",
            "program": "${workspaceRoot}",
            "env": { 
                "GOPATH": "/Users/carlca/Code/go" 
            },
            "args": [],
            "showLog": true
        }
    ]
}

I added the GOPATH info into the "env" setting and that seemed to sort out the path issue. I notice though that my Debug Console windows is showing:

2017/10/13 13:50:16 server.go:73: Using API v1
2017/10/13 13:50:16 debugger.go:97: launching process with args: [/Users/carlca/code/go/src/gitlab.com/hackebrot/tweets/debug]
could not launch process: exec: "lldb-server": executable file not found in $PATH
Process exiting with code: 1

I don't see why it's complaining about lldb-server when I would have thought that DLV should be the debugging executable.

Thanks in advance for any help!

@carlca
Copy link
Author

carlca commented Oct 13, 2017

I checked the issue #947 and ran xcode-select --install. That seems to have fixed it.

@carlca carlca closed this as completed Oct 13, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant