{
    // Play button (F5) starts the WHOLE stack via .NET Aspire:
    // dashboard + Postgres container + WebAPI + React frontend (Vite).
    // The Aspire dashboard (with login token) opens automatically.
    "version": "0.2.0",
    "configurations": [
        {
            "name": "GerbilManager (Aspire — alles starten)",
            "type": "coreclr",
            "request": "launch",
            "preLaunchTask": "build",
            "program": "${workspaceFolder}/GerbilManager.AppHost/bin/Debug/net10.0/GerbilManager.AppHost.dll",
            "args": [],
            "cwd": "${workspaceFolder}/GerbilManager.AppHost",
            "stopAtEntry": false,
            "env": {
                "ASPNETCORE_ENVIRONMENT": "Development",
                "DOTNET_ENVIRONMENT": "Development"
            },
            "serverReadyAction": {
                "action": "openExternally",
                "pattern": "Login to the dashboard at\\s+(https?://\\S+)",
                "uriFormat": "%s"
            }
        },
        {
            "name": ".NET Core Attach",
            "type": "coreclr",
            "request": "attach"
        }
    ]
}
