{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Debug SST",
      "type": "node",
      "request": "launch",
      "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/sst",
      "runtimeArgs": ["dev", "--increase-timeout"],
      "console": "integratedTerminal",
      "skipFiles": ["<node_internals>/**"],
      // sourceMapRenames helps with the loading spinner when debugging and viewing local variables
      "sourceMapRenames": false,
      "env": {
        "AWS_PROFILE": "flo-ct-flo360"
      }
    },
    {
      "name": "Debug Tests - Unit",
      "type": "node",
      "request": "launch",
      "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/sst",
      "runtimeArgs": ["bind", "yarn", "\"jest\"", "\"--watch\"", "\"--config\"", "\"./jest.unit.config.cjs\"", "\"${input:scopeTestsFileName}\""],
      "console": "integratedTerminal",
      "skipFiles": ["<node_internals>/**"],
      "env": {
        "AWS_PROFILE": "flo-ct-flo360"
      },
    },
    {
      "name": "Debug Tests - E2E",
      "type": "node",
      "request": "launch",
      "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/sst",
      "runtimeArgs": ["bind", "yarn", "\"vitest\"", "\"--config\"", "\"./vitest.e2e.config.ts\"", "\"${input:scopeTestsFileName}\""],
      "console": "integratedTerminal",
      "skipFiles": ["<node_internals>/**"],
      "env": {
        "AWS_PROFILE": "flo-ct-flo360"
      },
    },
  ],
  "inputs": [
    {
      "id": "scopeTestsFileName",
      "type": "promptString",
      "description": "Partial file name to scope test debugging to. ex. arena. Leave blank to run all tests.",
    }
  ]
}
