repos / pico

pico services mono repo
git clone https://github.com/picosh/pico.git

pico / .vscode
Antonio Mika  ·  2024-11-16

launch.json

 1{
 2  // Use IntelliSense to learn about possible attributes.
 3  // Hover to view descriptions of existing attributes.
 4  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
 5  "version": "0.2.0",
 6  "configurations": [
 7    {
 8      "name": "Debug App",
 9      "type": "go",
10      "request": "launch",
11      "mode": "auto",
12      "program": "${workspaceFolder}/cmd/${input:service}/${input:type}/main.go",
13      "envFile": "${workspaceFolder}/.env",
14      "cwd": "${workspaceFolder}",
15      "buildFlags": [
16        "-race"
17      ]
18    }
19  ],
20  "inputs": [
21    {
22      "id": "service",
23      "type": "promptString",
24      "description": "The service to debug",
25      "default": "pgs"
26    },
27    {
28      "id": "type",
29      "type": "promptString",
30      "description": "The service type to debug",
31      "default": "ssh"
32    }
33  ]
34}