https://code.visualstudio.com/download
On VSCode, Goto Extension -> Search Go
-> Install.
brew install -vd go-delve/delve/delve --HEAD
# Ignore errors
On default config, added useApiV1
as false
.
{
// 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": "Delve",
"type": "go",
"request": "launch",
"mode": "debug",
"remotePath": "",
"port": 2345,
"host": "127.0.0.1",
"program": "${fileDirname}",
"env": {},
"args": [],
"showLog": true,
"useApiV1": false
}
]
}