{ // Debugging Anubis from VS Code (needs the C# extension, ms-dotnettools.csharp). // Each configuration builds the server in Debug first and opens the browser once it listens. "version": "0.2.0", "configurations": [ { "name": "Anubis: server, dati di prova", "type": "coreclr", "request": "launch", "preLaunchTask": "build-server", "program": "${workspaceFolder}/src/Anubis.Server/bin/Debug/net10.0/Anubis.Server.dll", // The shape of the container (ADR 0022): a data folder of its own, ignored by git, and the development values of // docker-compose.yml. Outside a container the server answers only this computer. "args": ["--data-dir", "${workspaceFolder}/artifacts/debug-data"], "cwd": "${workspaceFolder}/src/Anubis.Server", "env": { "ASPNETCORE_ENVIRONMENT": "Development", "ANUBIS_DB_ENGINE": "sqlite", "ANUBIS_SECRET_KEY": "dev-only-secret-key-change-me-0123456789", "ANUBIS_ADMIN_PASSWORD": "dev-only-change-me", "ANUBIS_ALLOW_LIVE": "0" }, "console": "internalConsole", "stopAtEntry": false, "serverReadyAction": { "action": "openExternally", "pattern": "Now listening on: (https?://[^\\s\"]+)" } }, { "name": "Anubis: modalità dimostrativa", "type": "coreclr", "request": "launch", "preLaunchTask": "build-server", "program": "${workspaceFolder}/src/Anubis.Server/bin/Debug/net10.0/Anubis.Server.dll", // The data of SPEC appendix F, in a folder and a database apart (the same as "tasks seed-demo"). "args": ["--demo"], "cwd": "${workspaceFolder}/src/Anubis.Server", "env": { "ASPNETCORE_ENVIRONMENT": "Development" }, "console": "internalConsole", "stopAtEntry": false, "serverReadyAction": { "action": "openExternally", "pattern": "Now listening on: (https?://[^\\s\"]+)" } }, { "name": "Anubis: aggancia a un processo", "type": "coreclr", "request": "attach", "processId": "${command:pickProcess}" } ] }