Skip to content

Instantly share code, notes, and snippets.

@mckn
Last active December 7, 2021 09:16
Show Gist options
  • Save mckn/94025da6375f1fbf7dc1631e41b9a604 to your computer and use it in GitHub Desktop.
Save mckn/94025da6375f1fbf7dc1631e41b9a604 to your computer and use it in GitHub Desktop.
Grafana backend plugin VSCode launch
{
"version": "0.2.0",
"configurations": [
{
"name": "Run standalone plugin",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/pkg/",
"env": {},
"args": [
"--standalone=true",
],
},
{
"name": "Debug in Container",
"type": "go",
"request": "attach",
"mode": "remote",
"remotePath": "", // Example /var/lib/grafana/plugins/grafana-app/
"port": 2345,
"host": "127.0.0.1",
"apiVersion": 1,
"trace": "verbose"
}
],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment