|
6 | 6 | "version": "0.2.0",
|
7 | 7 | "configurations": [
|
8 | 8 | {
|
9 |
| - "name": "Attach to Node Process", |
10 |
| - "port": 9229, |
| 9 | + "name": "Python: Attach Prompt", |
| 10 | + "type": "debugpy", |
11 | 11 | "request": "attach",
|
12 |
| - "skipFiles": [ |
13 |
| - "<node_internals>/**" |
14 |
| - ], |
15 |
| - "type": "node", |
16 |
| - "autoAttachChildProcesses": true |
| 12 | + "connect": { |
| 13 | + "host": "localhost", |
| 14 | + "port": "${input:portNumber}" |
| 15 | + } |
17 | 16 | },
|
18 |
| - |
19 |
| - |
20 | 17 | {
|
21 |
| - "name": "esbuild.mjs", |
22 |
| - "program": "${workspaceFolder}/esbuild.mjs", |
| 18 | + "name": "Python: Attach to 5678", |
| 19 | + "type": "debugpy", |
| 20 | + "request": "attach", |
| 21 | + "connect": { |
| 22 | + "host": "localhost", |
| 23 | + "port": 5678 |
| 24 | + }, |
| 25 | + "justMyCode": false, |
| 26 | + "subProcess": true, |
| 27 | + "showReturnValue": true, |
| 28 | + }, |
| 29 | + { |
| 30 | + "name": "Python: Attach using Process Id", |
| 31 | + "type": "debugpy", |
| 32 | + "request": "attach", |
| 33 | + "processId": "${command:pickProcess}", |
| 34 | + "justMyCode": false |
| 35 | + }, |
| 36 | + { |
| 37 | + "name": "Python: Create Cmd Line Doc", |
| 38 | + "type": "debugpy", |
23 | 39 | "request": "launch",
|
24 |
| - "skipFiles": [ |
25 |
| - "<node_internals>/**" |
26 |
| - ], |
27 |
| - "type": "node", |
| 40 | + "program": "scripts/create_cmdline_doc.py", |
28 | 41 | "console": "integratedTerminal",
|
29 |
| - "runtimeArgs": [ |
30 |
| - "--experimental-modules" |
31 |
| - ] |
| 42 | + "justMyCode": false, |
| 43 | + "cwd": "${workspaceFolder}", |
| 44 | + }, |
| 45 | + { |
| 46 | + "name": "Python: Current File", |
| 47 | + "type": "debugpy", |
| 48 | + "request": "launch", |
| 49 | + "program": "${file}", |
| 50 | + "console": "integratedTerminal", |
| 51 | + "justMyCode": false, |
| 52 | + "cwd": "${workspaceFolder}", |
32 | 53 | },
|
33 | 54 | {
|
34 | 55 | "name": "Python: Debug in terminal",
|
|
39 | 60 | ],
|
40 | 61 | "justMyCode": false
|
41 | 62 | },
|
| 63 | + { |
| 64 | + "name": "Python: Debug Tests", |
| 65 | + "type": "debugpy", |
| 66 | + "request": "launch", |
| 67 | + "program": "${file}", |
| 68 | + "purpose": [ |
| 69 | + "debug-test" |
| 70 | + ], |
| 71 | + "console": "integratedTerminal", |
| 72 | + "justMyCode": false |
| 73 | + }, |
| 74 | + { |
| 75 | + "name": "Python: Pytest All Test", |
| 76 | + "type": "debugpy", |
| 77 | + "request": "launch", |
| 78 | + "module": "pytest", |
| 79 | + "args": [ |
| 80 | + "." |
| 81 | + ], |
| 82 | + "console": "integratedTerminal", |
| 83 | + "justMyCode": false, |
| 84 | + "cwd": "${workspaceFolder}", |
| 85 | + }, |
| 86 | + { |
| 87 | + "name": "Python: Pytest Current File", |
| 88 | + "type": "debugpy", |
| 89 | + "request": "launch", |
| 90 | + "module": "pytest", |
| 91 | + "args": [ |
| 92 | + "${file}" |
| 93 | + ], |
| 94 | + "console": "integratedTerminal", |
| 95 | + "justMyCode": false, |
| 96 | + "cwd": "${workspaceFolder}", |
| 97 | + }, |
| 98 | + { |
| 99 | + "name": "Python: Pytest Some Test", |
| 100 | + "type": "debugpy", |
| 101 | + "request": "launch", |
| 102 | + "module": "pytest", |
| 103 | + "args": [ |
| 104 | + "--full-trace", |
| 105 | + "--tb=native", |
| 106 | + "--regtest2-reset", |
| 107 | + //"--regtest-reset", |
| 108 | + //"tests/robotcode/language_server/robotframework/parts/test_foldingrange.py" |
| 109 | + //"tests/robotcode/language_server/robotframework/parts/test_references.py" |
| 110 | + //"./tests/robotcode/language_server/robotframework/parts/test_discovering.py::test_workspace_discovery" |
| 111 | + //"tests/robotcode/language_server/robotframework/parts/test_document_highlight.py" |
| 112 | + //"tests/robotcode/utils/test_dataclasses.py::test_really_complex_data" |
| 113 | + //"tests/robotcode/language_server/robotframework/parts/test_foldingrange.py" |
| 114 | + //"tests/robotcode/language_server/robotframework/parts/test_document_symbols.py", |
| 115 | + // "./tests/robotcode/language_server/robotframework/parts/test_semantic_tokens.py " |
| 116 | + "tests/robotcode/language_server/robotframework/parts/test_foldingrange.py::test[False-foldingrange.robot-123-001-try end]" |
| 117 | + ], |
| 118 | + "console": "integratedTerminal", |
| 119 | + "justMyCode": false, |
| 120 | + "cwd": "${workspaceFolder}", |
| 121 | + }, |
| 122 | + { |
| 123 | + "name": "Python: Remote-Attach", |
| 124 | + "type": "debugpy", |
| 125 | + "request": "attach", |
| 126 | + "connect": { |
| 127 | + "host": "localhost", |
| 128 | + "port": 5678 |
| 129 | + }, |
| 130 | + "pathMappings": [ |
| 131 | + { |
| 132 | + "localRoot": "${workspaceFolder}", |
| 133 | + "remoteRoot": "." |
| 134 | + } |
| 135 | + ], |
| 136 | + "justMyCode": true |
| 137 | + }, |
42 | 138 | {
|
43 | 139 | "name": "Python: RobotCode",
|
44 | 140 | "type": "debugpy",
|
|
98 | 194 | // "package.json"
|
99 | 195 | // "-v",
|
100 | 196 | // "asd:asd"
|
101 |
| - |
102 | 197 | ]
|
103 | 198 | },
|
104 | 199 | {
|
105 |
| - "name": "Python: Attach using Process Id", |
106 |
| - "type": "debugpy", |
107 |
| - "request": "attach", |
108 |
| - "processId": "${command:pickProcess}", |
109 |
| - "justMyCode": false |
110 |
| - }, |
111 |
| - { |
112 |
| - "name": "Python: Current File", |
| 200 | + "name": "Python: RobotCode Debugger", |
113 | 201 | "type": "debugpy",
|
114 | 202 | "request": "launch",
|
115 |
| - "program": "${file}", |
116 |
| - "console": "integratedTerminal", |
117 |
| - "justMyCode": false, |
118 |
| - "cwd": "${workspaceFolder}", |
119 |
| - }, |
120 |
| - { |
121 |
| - "name": "Python: Create Cmd Line Doc", |
122 |
| - "type": "debugpy", |
123 |
| - "request": "launch", |
124 |
| - "program": "scripts/create_cmdline_doc.py", |
125 |
| - "console": "integratedTerminal", |
126 |
| - "justMyCode": false, |
127 |
| - "cwd": "${workspaceFolder}", |
128 |
| - }, |
129 |
| - { |
130 |
| - "name": "Python: Attach to 5678", |
131 |
| - "type": "debugpy", |
132 |
| - "request": "attach", |
133 |
| - "connect": { |
134 |
| - "host": "localhost", |
135 |
| - "port": 5678 |
136 |
| - }, |
137 |
| - "justMyCode": false, |
138 |
| - "subProcess": true, |
139 |
| - "showReturnValue": true, |
140 |
| - }, |
141 |
| - { |
142 |
| - "name": "Python: Attach Prompt", |
143 |
| - "type": "debugpy", |
144 |
| - "request": "attach", |
145 |
| - "connect": { |
146 |
| - "host": "localhost", |
147 |
| - "port": "${input:portNumber}" |
148 |
| - } |
149 |
| - }, |
150 |
| - { |
151 |
| - "name": "Python: Pytest All Test", |
152 |
| - "type": "debugpy", |
153 |
| - "request": "launch", |
154 |
| - "module": "pytest", |
155 |
| - "args": [ |
156 |
| - "." |
157 |
| - ], |
158 |
| - "console": "integratedTerminal", |
159 |
| - "justMyCode": false, |
160 |
| - "cwd": "${workspaceFolder}", |
161 |
| - }, |
162 |
| - { |
163 |
| - "name": "Python: Pytest Some Test", |
164 |
| - "type": "debugpy", |
165 |
| - "request": "launch", |
166 |
| - "module": "pytest", |
167 |
| - "args": [ |
168 |
| - "--full-trace", |
169 |
| - "--tb=native", |
170 |
| - "--regtest2-reset", |
171 |
| - //"--regtest-reset", |
172 |
| - //"tests/robotcode/language_server/robotframework/parts/test_foldingrange.py" |
173 |
| - //"tests/robotcode/language_server/robotframework/parts/test_references.py" |
174 |
| - //"./tests/robotcode/language_server/robotframework/parts/test_discovering.py::test_workspace_discovery" |
175 |
| - //"tests/robotcode/language_server/robotframework/parts/test_document_highlight.py" |
176 |
| - //"tests/robotcode/utils/test_dataclasses.py::test_really_complex_data" |
177 |
| - //"tests/robotcode/language_server/robotframework/parts/test_foldingrange.py" |
178 |
| - //"tests/robotcode/language_server/robotframework/parts/test_document_symbols.py", |
179 |
| - // "./tests/robotcode/language_server/robotframework/parts/test_semantic_tokens.py " |
180 |
| - "tests/robotcode/language_server/robotframework/parts/test_foldingrange.py::test[False-foldingrange.robot-123-001-try end]" |
181 |
| - ], |
182 |
| - "console": "integratedTerminal", |
183 |
| - "justMyCode": false, |
184 |
| - "cwd": "${workspaceFolder}", |
185 |
| - }, |
186 |
| - { |
187 |
| - "name": "Python: Pytest Current File", |
188 |
| - "type": "debugpy", |
189 |
| - "request": "launch", |
190 |
| - "module": "pytest", |
| 203 | + "module": "robotcode.ci", |
191 | 204 | "args": [
|
192 |
| - "${file}" |
| 205 | + "debugger", |
| 206 | + "--no-wait-for-client" |
193 | 207 | ],
|
194 |
| - "console": "integratedTerminal", |
195 |
| - "justMyCode": false, |
196 |
| - "cwd": "${workspaceFolder}", |
197 | 208 | },
|
198 | 209 | {
|
199 | 210 | "name": "Python: robotcode language_server",
|
|
208 | 219 | ]
|
209 | 220 | },
|
210 | 221 | {
|
211 |
| - "name": "Run Extension", |
| 222 | + "name": "Extension Tests", |
212 | 223 | "type": "extensionHost",
|
213 | 224 | "request": "launch",
|
| 225 | + "runtimeExecutable": "${execPath}", |
214 | 226 | "args": [
|
215 | 227 | "--extensionDevelopmentPath=${workspaceFolder}",
|
| 228 | + "--extensionTestsPath=${workspaceFolder}/out/test/suite/index" |
216 | 229 | ],
|
217 |
| - "debugWebviews": true, |
218 |
| - "debugWebWorkerHost": true, |
219 | 230 | "outFiles": [
|
220 |
| - "${workspaceFolder}/out/**/*.js" |
| 231 | + "${workspaceFolder}/out/test/**/*.js" |
221 | 232 | ],
|
222 | 233 | "preLaunchTask": "npm: compile"
|
223 | 234 | },
|
224 | 235 | {
|
225 |
| - "name": "Run Extension With Gherkin", |
| 236 | + "name": "Run Extension", |
226 | 237 | "type": "extensionHost",
|
227 | 238 | "request": "launch",
|
228 | 239 | "args": [
|
229 | 240 | "--extensionDevelopmentPath=${workspaceFolder}",
|
230 |
| - "--extensionDevelopmentPath=${workspaceFolder}/../robotframework-gherkin-parser", |
231 | 241 | ],
|
| 242 | + "debugWebviews": true, |
| 243 | + "debugWebWorkerHost": true, |
232 | 244 | "outFiles": [
|
233 | 245 | "${workspaceFolder}/out/**/*.js"
|
234 | 246 | ],
|
235 | 247 | "preLaunchTask": "npm: compile"
|
236 | 248 | },
|
237 | 249 | {
|
238 |
| - "name": "Extension Tests", |
| 250 | + "name": "Run Extension With Gherkin", |
239 | 251 | "type": "extensionHost",
|
240 | 252 | "request": "launch",
|
241 |
| - "runtimeExecutable": "${execPath}", |
242 | 253 | "args": [
|
243 | 254 | "--extensionDevelopmentPath=${workspaceFolder}",
|
244 |
| - "--extensionTestsPath=${workspaceFolder}/out/test/suite/index" |
| 255 | + "--extensionDevelopmentPath=${workspaceFolder}/../robotframework-gherkin-parser", |
245 | 256 | ],
|
246 | 257 | "outFiles": [
|
247 |
| - "${workspaceFolder}/out/test/**/*.js" |
| 258 | + "${workspaceFolder}/out/**/*.js" |
248 | 259 | ],
|
249 | 260 | "preLaunchTask": "npm: compile"
|
250 | 261 | },
|
251 | 262 | {
|
252 |
| - "name": "Python: Debug Tests", |
253 |
| - "type": "debugpy", |
254 |
| - "request": "launch", |
255 |
| - "program": "${file}", |
256 |
| - "purpose": [ |
257 |
| - "debug-test" |
| 263 | + "name": "Attach to Node Process", |
| 264 | + "port": 9229, |
| 265 | + "request": "attach", |
| 266 | + "skipFiles": [ |
| 267 | + "<node_internals>/**" |
258 | 268 | ],
|
259 |
| - "console": "integratedTerminal", |
260 |
| - "justMyCode": false |
| 269 | + "type": "node", |
| 270 | + "autoAttachChildProcesses": true |
261 | 271 | },
|
262 | 272 | {
|
263 |
| - "name": "Python: Remote-Attach", |
264 |
| - "type": "debugpy", |
265 |
| - "request": "attach", |
266 |
| - "connect": { |
267 |
| - "host": "localhost", |
268 |
| - "port": 5678 |
269 |
| - }, |
270 |
| - "pathMappings": [ |
271 |
| - { |
272 |
| - "localRoot": "${workspaceFolder}", |
273 |
| - "remoteRoot": "." |
274 |
| - } |
| 273 | + "name": "esbuild.mjs", |
| 274 | + "program": "${workspaceFolder}/esbuild.mjs", |
| 275 | + "request": "launch", |
| 276 | + "skipFiles": [ |
| 277 | + "<node_internals>/**" |
275 | 278 | ],
|
276 |
| - "justMyCode": true |
| 279 | + "type": "node", |
| 280 | + "console": "integratedTerminal", |
| 281 | + "runtimeArgs": [ |
| 282 | + "--experimental-modules" |
| 283 | + ] |
277 | 284 | }
|
278 | 285 | ],
|
279 | 286 | "inputs": [
|
|
0 commit comments