1 | { |
---|
2 | // Use IntelliSense to learn about possible attributes. |
---|
3 | // Hover to view descriptions of existing attributes. |
---|
4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 |
---|
5 | "version": "0.2.0", |
---|
6 | "configurations": [ |
---|
7 | { |
---|
8 | "name": "Python", |
---|
9 | "type": "python", |
---|
10 | "request": "launch", |
---|
11 | "stopOnEntry": true, |
---|
12 | "pythonPath": "${config:python.pythonPath}", |
---|
13 | "program": "${file}", |
---|
14 | "cwd": "${workspaceRoot}", |
---|
15 | "env": {}, |
---|
16 | "envFile": "${workspaceRoot}/.env", |
---|
17 | "debugOptions": [ |
---|
18 | "WaitOnAbnormalExit", |
---|
19 | "WaitOnNormalExit", |
---|
20 | "RedirectOutput" |
---|
21 | ] |
---|
22 | }, |
---|
23 | { |
---|
24 | "name": "sascomp", |
---|
25 | "type": "python", |
---|
26 | "request": "launch", |
---|
27 | "stopOnEntry": true, |
---|
28 | "pythonPath": "${config:python.pythonPath}", |
---|
29 | "program": "${workspaceRoot}/sascomp", |
---|
30 | "cwd": "${workspaceRoot}", |
---|
31 | "args": ["cylinder,_cylpy","-double!"], |
---|
32 | "envFile": "${workspaceRoot}/.env", |
---|
33 | "debugOptions": [ |
---|
34 | "WaitOnAbnormalExit", |
---|
35 | "WaitOnNormalExit", |
---|
36 | "RedirectOutput" |
---|
37 | ] |
---|
38 | }, { |
---|
39 | "name": "Python: Attach", |
---|
40 | "type": "python", |
---|
41 | "request": "attach", |
---|
42 | "localRoot": "${workspaceRoot}", |
---|
43 | "remoteRoot": "${workspaceRoot}", |
---|
44 | "port": 3000, |
---|
45 | "secret": "my_secret", |
---|
46 | "host": "localhost" |
---|
47 | }, |
---|
48 | { |
---|
49 | "name": "Python: Terminal (integrated)", |
---|
50 | "type": "python", |
---|
51 | "request": "launch", |
---|
52 | "stopOnEntry": true, |
---|
53 | "pythonPath": "${config:python.pythonPath}", |
---|
54 | "program": "${file}", |
---|
55 | "cwd": "", |
---|
56 | "console": "integratedTerminal", |
---|
57 | "env": {}, |
---|
58 | "envFile": "${workspaceRoot}/.env", |
---|
59 | "debugOptions": [ |
---|
60 | "WaitOnAbnormalExit", |
---|
61 | "WaitOnNormalExit" |
---|
62 | ] |
---|
63 | }, |
---|
64 | { |
---|
65 | "name": "Python: Terminal (external)", |
---|
66 | "type": "python", |
---|
67 | "request": "launch", |
---|
68 | "stopOnEntry": true, |
---|
69 | "pythonPath": "${config:python.pythonPath}", |
---|
70 | "program": "${file}", |
---|
71 | "cwd": "", |
---|
72 | "console": "externalTerminal", |
---|
73 | "env": {}, |
---|
74 | "envFile": "${workspaceRoot}/.env", |
---|
75 | "debugOptions": [ |
---|
76 | "WaitOnAbnormalExit", |
---|
77 | "WaitOnNormalExit" |
---|
78 | ] |
---|
79 | }, |
---|
80 | { |
---|
81 | "name": "Python: Django", |
---|
82 | "type": "python", |
---|
83 | "request": "launch", |
---|
84 | "stopOnEntry": true, |
---|
85 | "pythonPath": "${config:python.pythonPath}", |
---|
86 | "program": "${workspaceRoot}/manage.py", |
---|
87 | "cwd": "${workspaceRoot}", |
---|
88 | "args": [ |
---|
89 | "runserver", |
---|
90 | "--noreload", |
---|
91 | "--nothreading" |
---|
92 | ], |
---|
93 | "env": {}, |
---|
94 | "envFile": "${workspaceRoot}/.env", |
---|
95 | "debugOptions": [ |
---|
96 | "WaitOnAbnormalExit", |
---|
97 | "WaitOnNormalExit", |
---|
98 | "RedirectOutput", |
---|
99 | "DjangoDebugging" |
---|
100 | ] |
---|
101 | }, |
---|
102 | { |
---|
103 | "name": "Python: Flask (0.11.x or later)", |
---|
104 | "type": "python", |
---|
105 | "request": "launch", |
---|
106 | "stopOnEntry": false, |
---|
107 | "pythonPath": "${config:python.pythonPath}", |
---|
108 | "program": "fully qualified path fo 'flask' executable. Generally located along with python interpreter", |
---|
109 | "cwd": "${workspaceRoot}", |
---|
110 | "env": { |
---|
111 | "FLASK_APP": "${workspaceRoot}/quickstart/app.py" |
---|
112 | }, |
---|
113 | "args": [ |
---|
114 | "run", |
---|
115 | "--no-debugger", |
---|
116 | "--no-reload" |
---|
117 | ], |
---|
118 | "envFile": "${workspaceRoot}/.env", |
---|
119 | "debugOptions": [ |
---|
120 | "WaitOnAbnormalExit", |
---|
121 | "WaitOnNormalExit", |
---|
122 | "RedirectOutput" |
---|
123 | ] |
---|
124 | }, |
---|
125 | { |
---|
126 | "name": "Python: Flask (0.10.x or earlier)", |
---|
127 | "type": "python", |
---|
128 | "request": "launch", |
---|
129 | "stopOnEntry": false, |
---|
130 | "pythonPath": "${config:python.pythonPath}", |
---|
131 | "program": "${workspaceRoot}/run.py", |
---|
132 | "cwd": "${workspaceRoot}", |
---|
133 | "args": [], |
---|
134 | "env": {}, |
---|
135 | "envFile": "${workspaceRoot}/.env", |
---|
136 | "debugOptions": [ |
---|
137 | "WaitOnAbnormalExit", |
---|
138 | "WaitOnNormalExit", |
---|
139 | "RedirectOutput" |
---|
140 | ] |
---|
141 | }, |
---|
142 | { |
---|
143 | "name": "Python: PySpark", |
---|
144 | "type": "python", |
---|
145 | "request": "launch", |
---|
146 | "stopOnEntry": true, |
---|
147 | "osx": { |
---|
148 | "pythonPath": "${env:SPARK_HOME}/bin/spark-submit" |
---|
149 | }, |
---|
150 | "windows": { |
---|
151 | "pythonPath": "${env:SPARK_HOME}/bin/spark-submit.cmd" |
---|
152 | }, |
---|
153 | "linux": { |
---|
154 | "pythonPath": "${env:SPARK_HOME}/bin/spark-submit" |
---|
155 | }, |
---|
156 | "program": "${file}", |
---|
157 | "cwd": "${workspaceRoot}", |
---|
158 | "env": {}, |
---|
159 | "envFile": "${workspaceRoot}/.env", |
---|
160 | "debugOptions": [ |
---|
161 | "WaitOnAbnormalExit", |
---|
162 | "WaitOnNormalExit", |
---|
163 | "RedirectOutput" |
---|
164 | ] |
---|
165 | }, |
---|
166 | { |
---|
167 | "name": "Python: Module", |
---|
168 | "type": "python", |
---|
169 | "request": "launch", |
---|
170 | "stopOnEntry": true, |
---|
171 | "pythonPath": "${config:python.pythonPath}", |
---|
172 | "module": "module.name", |
---|
173 | "cwd": "${workspaceRoot}", |
---|
174 | "env": {}, |
---|
175 | "envFile": "${workspaceRoot}/.env", |
---|
176 | "debugOptions": [ |
---|
177 | "WaitOnAbnormalExit", |
---|
178 | "WaitOnNormalExit", |
---|
179 | "RedirectOutput" |
---|
180 | ] |
---|
181 | }, |
---|
182 | { |
---|
183 | "name": "Python: Pyramid", |
---|
184 | "type": "python", |
---|
185 | "request": "launch", |
---|
186 | "stopOnEntry": true, |
---|
187 | "pythonPath": "${config:python.pythonPath}", |
---|
188 | "cwd": "${workspaceRoot}", |
---|
189 | "env": {}, |
---|
190 | "envFile": "${workspaceRoot}/.env", |
---|
191 | "args": [ |
---|
192 | "${workspaceRoot}/development.ini" |
---|
193 | ], |
---|
194 | "debugOptions": [ |
---|
195 | "WaitOnAbnormalExit", |
---|
196 | "WaitOnNormalExit", |
---|
197 | "RedirectOutput", |
---|
198 | "Pyramid" |
---|
199 | ] |
---|
200 | }, |
---|
201 | { |
---|
202 | "name": "Python: Watson", |
---|
203 | "type": "python", |
---|
204 | "request": "launch", |
---|
205 | "stopOnEntry": true, |
---|
206 | "pythonPath": "${config:python.pythonPath}", |
---|
207 | "program": "${workspaceRoot}/console.py", |
---|
208 | "cwd": "${workspaceRoot}", |
---|
209 | "args": [ |
---|
210 | "dev", |
---|
211 | "runserver", |
---|
212 | "--noreload=True" |
---|
213 | ], |
---|
214 | "env": {}, |
---|
215 | "envFile": "${workspaceRoot}/.env", |
---|
216 | "debugOptions": [ |
---|
217 | "WaitOnAbnormalExit", |
---|
218 | "WaitOnNormalExit", |
---|
219 | "RedirectOutput" |
---|
220 | ] |
---|
221 | } |
---|
222 | ] |
---|
223 | } |
---|