-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlaunch.json
More file actions
95 lines (95 loc) · 2.33 KB
/
launch.json
File metadata and controls
95 lines (95 loc) · 2.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
"version": "0.2.0",
"configurations": [
{
"name": "Django: Server",
"type": "debugpy",
"request": "launch",
"program": "${workspaceFolder}/manage.py",
"args": ["runserver_plus", "--print-sql", "localhost:8000"],
"django": true,
"console": "integratedTerminal"
},
{
"name": "Django: Server (eager Celery)",
"type": "debugpy",
"request": "launch",
"program": "${workspaceFolder}/manage.py",
"args": ["runserver_plus", "--print-sql", "localhost:8000"],
"env": {
"DJANGO_CELERY_TASK_ALWAYS_EAGER": "true"
},
"django": true,
"console": "integratedTerminal"
},
{
"name": "Django: Management Command",
"type": "debugpy",
"request": "launch",
"program": "${workspaceFolder}/manage.py",
"args": ["${input:managementCommand}"],
"django": true,
"console": "integratedTerminal"
},
{
"name": "Celery: Worker",
"type": "debugpy",
"request": "launch",
"module": "celery",
"args": [
"--app",
"bats_ai.celery",
"worker",
"--loglevel",
"INFO",
"--pool",
"solo",
"--without-heartbeat"
],
"console": "integratedTerminal",
"justMyCode": false
},
{
"name": "Pytest: Debug",
"type": "debugpy",
"request": "launch",
"purpose": ["debug-test"],
"console": "integratedTerminal",
"django": true,
"justMyCode": false
},
{
"name": "Vite: Dev Server",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}/client",
"runtimeExecutable": "npm",
"runtimeArgs": ["run", "dev"],
"console": "integratedTerminal"
}
],
"compounds": [
{
"name": "Django + Celery",
"configurations": ["Django: Server", "Celery: Worker"],
"stopAll": true
},
{
"name": "Django + Celery + Vite",
"configurations": ["Django: Server", "Celery: Worker", "Vite: Dev Server"],
"stopAll": true
}
],
"inputs": [
{
"id": "managementCommand",
"type": "command",
"command": "shellCommand.execute",
"args": {
"command": "./manage.py help --commands",
"description": "Django management command",
"allowCustomValues": true
}
}
]
}