0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-25 11:10:24 +01:00
posthog/.vscode/launch.json

237 lines
7.9 KiB
JSON

{
// 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": "Frontend",
"command": "pnpm start",
"request": "launch",
"type": "node-terminal",
"cwd": "${workspaceFolder}",
"presentation": {
"group": "main"
},
"skipFiles": ["${workspaceFolder}/node_modules/kea-typegen/**/*.js"]
},
{
"name": "Frontend (https)",
"command": "pnpm start",
"request": "launch",
"type": "node-terminal",
"cwd": "${workspaceFolder}",
"presentation": {
"group": "main"
},
"env": {
"LOCAL_HTTPS": "1",
"JS_URL": "https://secure.posthog.dev"
}
},
{
"name": "Backend",
"consoleName": "Backend",
"type": "debugpy",
"request": "launch",
"program": "${workspaceFolder}/manage.py",
"args": ["runserver"],
"django": true,
"env": {
"PYTHONUNBUFFERED": "1",
"DJANGO_SETTINGS_MODULE": "posthog.settings",
"DEBUG": "1",
"CLICKHOUSE_SECURE": "False",
"KAFKA_HOSTS": "localhost",
"DATABASE_URL": "postgres://posthog:posthog@localhost:5432/posthog",
"SKIP_SERVICE_VERSION_REQUIREMENTS": "1",
"PRINT_SQL": "1",
"BILLING_SERVICE_URL": "https://billing.dev.posthog.dev",
"CLOUD_DEPLOYMENT": "dev"
},
"envFile": "${workspaceFolder}/.env",
"console": "integratedTerminal",
"cwd": "${workspaceFolder}",
"presentation": {
"group": "main"
}
},
{
"name": "Backend (with local billing)",
"consoleName": "Backend",
"type": "debugpy",
"request": "launch",
"program": "${workspaceFolder}/manage.py",
"args": ["runserver"],
"django": true,
"env": {
"PYTHONUNBUFFERED": "1",
"DJANGO_SETTINGS_MODULE": "posthog.settings",
"DEBUG": "1",
"CLICKHOUSE_SECURE": "False",
"KAFKA_HOSTS": "localhost",
"DATABASE_URL": "postgres://posthog:posthog@localhost:5432/posthog",
"SKIP_SERVICE_VERSION_REQUIREMENTS": "1",
"PRINT_SQL": "1",
"BILLING_SERVICE_URL": "http://localhost:8100/",
"CLOUD_DEPLOYMENT": "dev"
},
"console": "integratedTerminal",
"cwd": "${workspaceFolder}",
"presentation": {
"group": "main"
}
},
{
"name": "Celery Threaded Pool",
"consoleName": "Celery Threaded Pool",
"type": "debugpy",
"justMyCode": true,
"autoReload": {
"enable": true,
"include": ["posthog/**/*.py"]
},
"request": "launch",
"program": "${workspaceFolder}/manage.py",
"args": ["run_autoreload_celery", "--type=worker"],
"console": "integratedTerminal",
"cwd": "${workspaceFolder}",
"env": {
"SKIP_ASYNC_MIGRATIONS_SETUP": "0",
"DEBUG": "1",
"BILLING_SERVICE_URL": "https://billing.dev.posthog.dev",
"SKIP_SERVICE_VERSION_REQUIREMENTS": "1"
},
"presentation": {
"group": "main"
}
},
{
"name": "Plugin Server",
"command": "npm run start:dev",
"request": "launch",
"type": "node-terminal",
"cwd": "${workspaceFolder}/plugin-server",
"env": {
"CLICKHOUSE_SECURE": "False",
"DATABASE_URL": "postgres://posthog:posthog@localhost:5432/posthog",
"KAFKA_HOSTS": "localhost:9092",
"WORKER_CONCURRENCY": "2",
"OBJECT_STORAGE_ENABLED": "True",
"HOG_HOOK_URL": "http://localhost:3300/hoghook",
"CDP_ASYNC_FUNCTIONS_RUSTY_HOOK_TEAMS": "",
"CDP_CYCLOTRON_ENABLED_TEAMS": "*"
},
"presentation": {
"group": "main"
}
},
{
"name": "Temporal Worker",
"consoleName": "Temporal Worker",
"type": "debugpy",
"request": "launch",
"program": "${workspaceFolder}/manage.py",
"args": ["start_temporal_worker"],
"django": true,
"env": {
"PYTHONUNBUFFERED": "1",
"DJANGO_SETTINGS_MODULE": "posthog.settings",
"DEBUG": "1",
"CLICKHOUSE_SECURE": "False",
"KAFKA_HOSTS": "localhost",
"DATABASE_URL": "postgres://posthog:posthog@localhost:5432/posthog",
"SKIP_SERVICE_VERSION_REQUIREMENTS": "1",
"PRINT_SQL": "1"
},
"console": "integratedTerminal",
"cwd": "${workspaceFolder}",
"presentation": {
"group": "main"
}
},
{
"name": "Pytest: Current File",
"type": "debugpy",
"request": "launch",
"module": "pytest",
"args": ["${file}", "-vvv"],
"console": "integratedTerminal",
"justMyCode": true
},
{
"name": "Frontend: Debug Jest Tests",
"type": "node-terminal",
"command": "pnpm test:unit --runInBand",
"request": "launch",
"cwd": "${workspaceFolder}"
},
{
"name": "(lldb) Attach",
"type": "cppdbg",
"request": "attach",
"program": "/Users/twixes/.pyenv/versions/3.10.10/envs/posthog-3.10/bin/python",
"MIMode": "lldb"
},
{
"name": "Python C++ Debugger: Current File",
"type": "pythoncpp",
"request": "launch",
"pythonConfig": "custom",
"pythonLaunchName": "Pytest: Current File",
"cppConfig": "custom",
"cppAttachName": "(lldb) Attach"
},
{
"name": "Python: Debug Tests",
"type": "python",
"request": "launch",
"program": "${file}",
"purpose": ["debug-test"],
"console": "integratedTerminal",
"justMyCode": false
}
],
"compounds": [
{
"name": "PostHog",
"configurations": ["Backend", "Celery Threaded Pool", "Frontend", "Plugin Server", "Temporal Worker"],
"stopAll": true,
"presentation": {
"order": 1,
"group": "compound"
}
},
{
"name": "PostHog (local billing)",
"configurations": [
"Backend (with local billing)",
"Celery Threaded Pool",
"Frontend",
"Plugin Server",
"Temporal Worker"
],
"stopAll": true,
"presentation": {
"order": 2,
"group": "compound"
}
},
{
"name": "PostHog (https)",
"configurations": [
"Backend",
"Celery Threaded Pool",
"Frontend (https)",
"Plugin Server",
"Temporal Worker"
],
"stopAll": true,
"presentation": {
"order": 2,
"group": "compound"
}
}
]
}