Skip to content

Commit b78937a

Browse files
committed
chore: update launch.json
1 parent a65b9b9 commit b78937a

File tree

1 file changed

+145
-138
lines changed

1 file changed

+145
-138
lines changed

.vscode/launch.json

Lines changed: 145 additions & 138 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,50 @@
66
"version": "0.2.0",
77
"configurations": [
88
{
9-
"name": "Attach to Node Process",
10-
"port": 9229,
9+
"name": "Python: Attach Prompt",
10+
"type": "debugpy",
1111
"request": "attach",
12-
"skipFiles": [
13-
"<node_internals>/**"
14-
],
15-
"type": "node",
16-
"autoAttachChildProcesses": true
12+
"connect": {
13+
"host": "localhost",
14+
"port": "${input:portNumber}"
15+
}
1716
},
18-
19-
2017
{
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",
2339
"request": "launch",
24-
"skipFiles": [
25-
"<node_internals>/**"
26-
],
27-
"type": "node",
40+
"program": "scripts/create_cmdline_doc.py",
2841
"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}",
3253
},
3354
{
3455
"name": "Python: Debug in terminal",
@@ -39,6 +60,81 @@
3960
],
4061
"justMyCode": false
4162
},
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+
},
42138
{
43139
"name": "Python: RobotCode",
44140
"type": "debugpy",
@@ -98,102 +194,17 @@
98194
// "package.json"
99195
// "-v",
100196
// "asd:asd"
101-
102197
]
103198
},
104199
{
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",
113201
"type": "debugpy",
114202
"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",
191204
"args": [
192-
"${file}"
205+
"debugger",
206+
"--no-wait-for-client"
193207
],
194-
"console": "integratedTerminal",
195-
"justMyCode": false,
196-
"cwd": "${workspaceFolder}",
197208
},
198209
{
199210
"name": "Python: robotcode language_server",
@@ -208,72 +219,68 @@
208219
]
209220
},
210221
{
211-
"name": "Run Extension",
222+
"name": "Extension Tests",
212223
"type": "extensionHost",
213224
"request": "launch",
225+
"runtimeExecutable": "${execPath}",
214226
"args": [
215227
"--extensionDevelopmentPath=${workspaceFolder}",
228+
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
216229
],
217-
"debugWebviews": true,
218-
"debugWebWorkerHost": true,
219230
"outFiles": [
220-
"${workspaceFolder}/out/**/*.js"
231+
"${workspaceFolder}/out/test/**/*.js"
221232
],
222233
"preLaunchTask": "npm: compile"
223234
},
224235
{
225-
"name": "Run Extension With Gherkin",
236+
"name": "Run Extension",
226237
"type": "extensionHost",
227238
"request": "launch",
228239
"args": [
229240
"--extensionDevelopmentPath=${workspaceFolder}",
230-
"--extensionDevelopmentPath=${workspaceFolder}/../robotframework-gherkin-parser",
231241
],
242+
"debugWebviews": true,
243+
"debugWebWorkerHost": true,
232244
"outFiles": [
233245
"${workspaceFolder}/out/**/*.js"
234246
],
235247
"preLaunchTask": "npm: compile"
236248
},
237249
{
238-
"name": "Extension Tests",
250+
"name": "Run Extension With Gherkin",
239251
"type": "extensionHost",
240252
"request": "launch",
241-
"runtimeExecutable": "${execPath}",
242253
"args": [
243254
"--extensionDevelopmentPath=${workspaceFolder}",
244-
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
255+
"--extensionDevelopmentPath=${workspaceFolder}/../robotframework-gherkin-parser",
245256
],
246257
"outFiles": [
247-
"${workspaceFolder}/out/test/**/*.js"
258+
"${workspaceFolder}/out/**/*.js"
248259
],
249260
"preLaunchTask": "npm: compile"
250261
},
251262
{
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>/**"
258268
],
259-
"console": "integratedTerminal",
260-
"justMyCode": false
269+
"type": "node",
270+
"autoAttachChildProcesses": true
261271
},
262272
{
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>/**"
275278
],
276-
"justMyCode": true
279+
"type": "node",
280+
"console": "integratedTerminal",
281+
"runtimeArgs": [
282+
"--experimental-modules"
283+
]
277284
}
278285
],
279286
"inputs": [

0 commit comments

Comments
 (0)