Skip to content

Instantly share code, notes, and snippets.

@weizsw
Last active November 22, 2022 06:48
Show Gist options
  • Save weizsw/315cb91e0664270498eba29535606ded to your computer and use it in GitHub Desktop.
Save weizsw/315cb91e0664270498eba29535606ded to your computer and use it in GitHub Desktop.
launch.json
{
// 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": "auto",
"type": "auto-debug",
"request": "launch",
"map": {
"*.go": "Go: Current File"
}
},
{
"name": "bass",
"type": "go",
"env": {
"SP_UNIX_SOCKET": "/tmp/spex.sock",
"PORT_http": "9003",
"PORT_bass_admin": "9001",
"CID": "ID",
},
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/cmd/fs_bass"
},
{
"name": "Go: Current File",
"type": "go",
"request": "launch",
"program": "${workspaceFolder}/cmd/fs_bass_integration_server",
"console": "integratedTerminal"
},
]
}
{
// 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 remote",
"type": "go",
"env": {
"SP_UNIX_SOCKET":"/tmp/spex.sock",
"PORT_http":"9003",
"PORT_bass_admin":"9001",
"CID":"ID",
},
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/cmd/fs_bass"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment