{
  // Use IntelliSense to learn about possible attributes.
  // Hover to view descriptions of existing attributes.
  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  "version": "0.2.0",
  "configurations": [
    {
      "type": "lldb",
      "request": "launch",
      "name": "debug recorder bin",
      "cargo": {
        "args": [
          "build",
          "--bin=recorder_cli",
          "--package=recorder",
        ],
        "filter": {
          "name": "recorder_cli",
          "kind": "bin"
        }
      },
      "args": [
        "start",
        "--environment",
        "development"
      ],
      "cwd": "${workspaceFolder}"
    },
    {
      "type": "lldb",
      "request": "launch",
      "name": "debug playground example",
      "cargo": {
        "args": [
          "build",
          "--example=playground",
          "--package=recorder",
        ],
        "filter": {
          "name": "playground",
          "kind": "example"
        }
      },
      "args": [
        "--environment",
        "development"
      ],
      "cwd": "${workspaceFolder}"
    },
    {
      "type": "lldb",
      "request": "launch",
      "name": "debug recorder lib",
      "cargo": {
        "args": [
          "test",
          "--no-run",
          "--test=mod",
          "--package=recorder"
        ],
        "filter": {
          "name": "mod",
          "kind": "test"
        }
      },
      "args": [],
      "cwd": "${workspaceFolder}"
    },
    {
      "name": "Next.js: debug server-side",
      "type": "node-terminal",
      "request": "launch",
      "command": "pnpm dev"
    },
    {
      "name": "Next.js: debug client-side (app)",
      "type": "chrome",
      "request": "launch",
      "url": "http://localhost:5000"
    },
    {
      "name": "Next.js: debug client-side (web)",
      "type": "chrome",
      "request": "launch",
      "url": "http://localhost:5001"
    },
    {
      "name": "Next.js: debug client-side (api)",
      "type": "chrome",
      "request": "launch",
      "url": "http://localhost:5002"
    },
    {
      "name": "Next.js: debug client-side (email)",
      "type": "chrome",
      "request": "launch",
      "url": "http://localhost:5003"
    },
    {
      "name": "Next.js: debug client-side (app)",
      "type": "chrome",
      "request": "launch",
      "url": "http://localhost:5004"
    },
    {
      "name": "Next.js: debug full stack",
      "type": "node",
      "request": "launch",
      "program": "${workspaceFolder}/node_modules/.bin/next",
      "runtimeArgs": ["--inspect"],
      "skipFiles": ["<node_internals>/**"],
      "serverReadyAction": {
        "action": "debugWithEdge",
        "killOnServerStop": true,
        "pattern": "- Local:.+(https?://.+)",
        "uriFormat": "%s",
        "webRoot": "${workspaceFolder}"
      }
    }
  ]
}
