{
    // 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": [
        {
            "name": "Centurion",
            "type": "debugpy",
            "request": "launch",
            "args": [
                "runserver",
                "0.0.0.0:8002"
            ],
            "django": true,
            "autoStartBrowser": false,
            "program": "${workspaceFolder}/app/manage.py"
        },
        {
            "name": "Debug: Gunicorn",
            "type": "debugpy",
            "request": "launch",
            "module": "gunicorn",
            "args": [
                "--config=../includes/etc/gunicorn.conf.py",
                "--access-logfile",
                "-",
                "--workers",
                "3",
                "--bind",
                "0.0.0.0:8002",
                "centurion.wsgi:application",
            ],
            "django": true,
            "autoStartBrowser": false,
            "cwd": "${workspaceFolder}/app",
            "env": {
                "PROMETHEUS_MULTIPROC_DIR": ""
            }
        },
        {
            "name": "Centurion Feature Flag (Management Command)",
            "type": "debugpy",
            "request": "launch",
            "args": [
                "feature_flag",
                // "0.0.0.0:8002"
            ],
            "django": true,
            "autoStartBrowser": false,
            "program": "${workspaceFolder}/app/manage.py"
        },
        {
            "name": "Centurion Model (Management Command)",
            "type": "debugpy",
            "request": "launch",
            "args": [
                "models",
                // "0.0.0.0:8002"
            ],
            "django": true,
            "autoStartBrowser": false,
            "program": "${workspaceFolder}/app/manage.py"
        },
        {
            "name": "Make Migrations",
            "type": "debugpy",
            "request": "launch",
            "args": [
                "makemigrations"
            ],
            "django": true,
            "autoStartBrowser": false,
            "program": "${workspaceFolder}/app/manage.py"
        },
        {
            "name": "Migrate",
            "type": "debugpy",
            "request": "launch",
            "args": [
                "migrate"
            ],
            "django": true,
            "autoStartBrowser": false,
            "program": "${workspaceFolder}/app/manage.py"
        },
        {
            "name": "Debug: Celery",
            "type": "debugpy",
            "request": "launch",
            "module": "celery",
            "console": "integratedTerminal",
            "args": [
                "-A",
                "app",
                "worker",
                "-l",
                "INFO",
                "-n",
                "debug-itsm@%h"
            ],
            "cwd": "${workspaceFolder}/app"
        },
        {
            "name": "Debug pytest (collect)",
            "type": "debugpy",
            "request": "launch",
            "module": "pytest",
            "args": [
                "--override-ini", "addopts=",
                "--collect-only",
                "app",
            ],
            "console": "integratedTerminal",
            "justMyCode": false
        },
        {
            "name": "Python Debugger: Local Attach",
            "type": "debugpy",
            "request": "attach",
            "connect": {
                "host": "localhost",
                "port": 5678
            },
            "pathMappings": [
                {
                    "localRoot": "${workspaceFolder}",
                    "remoteRoot": "."
                }
            ]
        },
    ]
}