Skip to content

Instantly share code, notes, and snippets.

@mrichman
Created August 18, 2017 12:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrichman/c64d9f414acf9071ea76bd6a5399eb64 to your computer and use it in GitHub Desktop.
Save mrichman/c64d9f414acf9071ea76bd6a5399eb64 to your computer and use it in GitHub Desktop.
Install delve debugger on Mac OS X without homebrew

Install delve debugger on Mac OS X without homebrew

mkdir $GOPATH/src/github.com/derekparker
cd $GOPATH/src/github.com/derekparker
git clone https://github.com/derekparker/delve.git
cd delve
CERT=dlv-cert make install

For Visual Studio Code (launch.json):

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch",
            "type": "go",
            "request": "launch",
            "mode": "debug",
            "remotePath": "",
            "port": 2345,
            "host": "127.0.0.1",
            "program": "${workspaceRoot}/main.go",
            "env": {},
            "args": [],
            "showLog": true,
            "trace": true
        }
    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment