Skip to content

Instantly share code, notes, and snippets.

@whazzmaster
Last active October 23, 2017 18:21
Show Gist options
  • Save whazzmaster/8d7c1136e5acf078af38ec9a46e15284 to your computer and use it in GitHub Desktop.
Save whazzmaster/8d7c1136e5acf078af38ec9a46e15284 to your computer and use it in GitHub Desktop.
golang vscode launch configuration
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch tests",
"type": "go",
"request": "launch",
"mode": "test",
"program": "${workspaceRoot}"
},
{
"name": "Launch local",
"type": "go",
"request": "launch",
"mode": "debug",
"remotePath": "",
"port": 2345,
"host": "127.0.0.1",
"program": "${workspaceFolder}/main.go",
"env": {},
"args": [],
"showLog": true,
"trace": true
},
{
"name": "Remote debug in Docker",
"type": "go",
"request": "launch",
"mode": "remote",
"program": "${workspaceRoot}",
"env": {},
"args": [],
"remotePath": "/go/src/app",
"port": 2345,
"host": "192.168.99.100"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment