-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvscode.txt
53 lines (47 loc) · 1.65 KB
/
vscode.txt
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
# windows powershell
Set-ExecutionPolicy Unrestricted -Scope Process
# setup template for tests
{
"name": "Test",
"type": "python",
"request": "test",
"justMyCode": false
}
# some fixed dev
{
"name": "Upload (Gunicorn)",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/.venv/bin/gunicorn",
"console": "integratedTerminal",
"justMyCode": false,
"envFile": "${workspaceFolder}/.env",
"env": {
"IS_GUNICORN": "true",
"IS_UPLOAD": "true"
},
"args": ["main:app", "--config", "${workspaceFolder}/confs/gunicorn.py"]
},
# current file setting
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"justMyCode": false
},
# python remote debug
{
"name": "Python Attach (Remote Debug K8s)",
"type": "python",
"request": "attach",
"pathMappings": [
{
"localRoot": "${workspaceFolder}", // You may also manually specify the directory containing your source code.
"remoteRoot": "/code" // Linux example; adjust as necessary for your OS and situation.
}
],
"port": 9500, // Set to the remote port.
"host": "127.0.0.1" // Set to your remote host's public IP address.
},