mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 20:24:18 -06:00
53 lines
1.3 KiB
JSON
53 lines
1.3 KiB
JSON
{
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "Run Server",
|
|
"type": "go",
|
|
"request": "launch",
|
|
"mode": "auto",
|
|
"program": "${workspaceFolder}/pkg/cmd/grafana/",
|
|
"env": {},
|
|
"cwd": "${workspaceFolder}",
|
|
"args": ["server", "--homepath", "${workspaceFolder}", "--packaging", "dev"]
|
|
},
|
|
{
|
|
"name": "Run API Server (testdata)",
|
|
"type": "go",
|
|
"request": "launch",
|
|
"mode": "auto",
|
|
"program": "${workspaceFolder}/pkg/cmd/grafana/",
|
|
"env": {},
|
|
"cwd": "${workspaceFolder}",
|
|
"args": ["apiserver",
|
|
"--secure-port=8443",
|
|
"--runtime-config=testdata.datasource.grafana.app/v0alpha1=true"]
|
|
},
|
|
{
|
|
"name": "Attach to Chrome",
|
|
"port": 9222,
|
|
"request": "attach",
|
|
"type": "chrome",
|
|
"webRoot": "${workspaceFolder}"
|
|
},
|
|
{
|
|
"name": "Debug Jest test",
|
|
"type": "node",
|
|
"request": "launch",
|
|
"runtimeExecutable": "yarn",
|
|
"runtimeArgs": ["run", "jest", "--runInBand", "${file}"],
|
|
"console": "integratedTerminal",
|
|
"internalConsoleOptions": "neverOpen",
|
|
"port": 9229
|
|
},
|
|
{
|
|
"name": "Debug Go test",
|
|
"type": "go",
|
|
"request": "launch",
|
|
"mode": "test",
|
|
"program": "${workspaceFolder}/${relativeFileDirname}",
|
|
"showLog": true
|
|
}
|
|
]
|
|
}
|