SurfSense/.vscode/launch.json

189 lines
5.7 KiB
JSON
Raw Normal View History

2025-06-03 00:10:35 -07:00
{
// 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": "Backend: FastAPI",
2025-06-03 00:10:35 -07:00
"type": "debugpy",
"request": "launch",
"module": "uvicorn",
"args": [
"app.app:app",
"--reload",
"--host",
"0.0.0.0",
"--log-level",
"info",
"--reload-dir",
"app"
],
"console": "integratedTerminal",
"justMyCode": false,
"cwd": "${workspaceFolder}/surfsense_backend",
2026-03-21 22:13:41 -07:00
"python": "uv",
"pythonArgs": [
"run",
"python"
]
2025-06-03 00:10:35 -07:00
},
{
"name": "Backend: FastAPI (No Reload)",
"type": "debugpy",
"request": "launch",
"program": "${workspaceFolder}/surfsense_backend/main.py",
"console": "integratedTerminal",
"justMyCode": false,
"cwd": "${workspaceFolder}/surfsense_backend",
2026-03-21 22:13:41 -07:00
"python": "uv",
"pythonArgs": [
"run",
"python"
]
},
2025-06-03 00:10:35 -07:00
{
"name": "Backend: FastAPI (main.py)",
2025-06-03 00:10:35 -07:00
"type": "debugpy",
"request": "launch",
"program": "${workspaceFolder}/surfsense_backend/main.py",
"console": "integratedTerminal",
"justMyCode": false,
2026-03-21 22:13:41 -07:00
"cwd": "${workspaceFolder}/surfsense_backend",
"python": "uv",
"pythonArgs": [
"run",
"python"
]
2025-12-18 23:57:57 -08:00
},
{
"name": "Frontend: Next.js",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}/surfsense_web",
2026-03-21 22:13:41 -07:00
"runtimeExecutable": "pnpm",
"runtimeArgs": ["run", "dev"],
"console": "integratedTerminal",
"serverReadyAction": {
"pattern": "- Local:.+(https?://.+)",
"uriFormat": "%s",
"action": "debugWithChrome"
}
},
{
"name": "Frontend: Next.js (Server-Side Debug)",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}/surfsense_web",
2026-03-21 22:13:41 -07:00
"runtimeExecutable": "pnpm",
"runtimeArgs": ["run", "debug:server"],
"console": "integratedTerminal",
"serverReadyAction": {
"pattern": "- Local:.+(https?://.+)",
"uriFormat": "%s",
"action": "debugWithChrome"
}
},
{
"name": "Celery: Worker",
"type": "debugpy",
"request": "launch",
"module": "celery",
"args": [
"-A",
"app.celery_app:celery_app",
"worker",
"--loglevel=info",
"--queues=surfsense,surfsense.connectors,surfsense-dev,surfsense-dev.connectors",
"--pool=solo"
],
"console": "integratedTerminal",
"justMyCode": false,
"cwd": "${workspaceFolder}/surfsense_backend",
2026-03-21 22:13:41 -07:00
"python": "uv",
"pythonArgs": [
"run",
"python"
]
},
{
"name": "Celery: Beat Scheduler",
2025-12-18 23:57:57 -08:00
"type": "debugpy",
"request": "launch",
"module": "celery",
"args": [
"-A",
"app.celery_app:celery_app",
"beat",
"--loglevel=info"
],
2025-12-18 23:57:57 -08:00
"console": "integratedTerminal",
"justMyCode": false,
"cwd": "${workspaceFolder}/surfsense_backend",
2026-03-21 22:13:41 -07:00
"python": "uv",
"pythonArgs": [
"run",
"python"
]
}
],
"compounds": [
{
"name": "Full Stack: Backend + Frontend + Celery",
"configurations": [
"Backend: FastAPI",
"Frontend: Next.js",
"Celery: Worker",
"Celery: Beat Scheduler"
],
"stopAll": true,
"presentation": {
"hidden": false,
"group": "Full Stack",
"order": 1
}
},
{
"name": "Full Stack: Backend + Frontend",
"configurations": [
"Backend: FastAPI",
"Frontend: Next.js"
],
"stopAll": true,
"presentation": {
"hidden": false,
"group": "Full Stack",
"order": 2
2025-12-18 23:57:57 -08:00
}
},
{
"name": "Full Stack: Backend (No Reload) + Frontend + Celery",
"configurations": [
"Backend: FastAPI (No Reload)",
"Frontend: Next.js",
"Celery: Worker",
"Celery: Beat Scheduler"
],
"stopAll": true,
"presentation": {
"hidden": false,
"group": "Full Stack",
"order": 3
}
},
{
"name": "Full Stack: Backend (No Reload) + Frontend",
"configurations": [
"Backend: FastAPI (No Reload)",
"Frontend: Next.js"
],
"stopAll": true,
"presentation": {
"hidden": false,
"group": "Full Stack",
"order": 4
}
2025-06-03 00:10:35 -07:00
}
]
}