Fix VSCode launch config to be able to debug server and agent (#249)

This commit is contained in:
Anbraten 2021-07-19 15:36:33 +02:00 committed by GitHub
parent 84968f7e0b
commit 7851ced1d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

12
.vscode/launch.json vendored
View file

@ -5,11 +5,19 @@
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "configurations": [
{ {
"name": "Woodpecker", "name": "Woodpecker server",
"type": "go", "type": "go",
"request": "launch", "request": "launch",
"mode": "debug", "mode": "debug",
"program": "${workspaceFolder}/cmd/drone-server/main.go", "program": "${workspaceFolder}/cmd/drone-server/",
"cwd": "${workspaceFolder}"
},
{
"name": "Woodpecker agent",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceFolder}/cmd/drone-agent/",
"cwd": "${workspaceFolder}" "cwd": "${workspaceFolder}"
} }
] ]