Skip to content

Commit 94efdc2

Browse files
committed
launch and debug ext and debug server
1 parent 6268306 commit 94efdc2

File tree

1 file changed

+66
-61
lines changed

1 file changed

+66
-61
lines changed

.vscode/launch.json

Lines changed: 66 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,68 @@
11
// A launch configuration that compiles the extension and then opens it inside a new window
22
{
3-
"version": "0.1.0",
4-
"configurations": [
5-
{
6-
"name": "Launch Extension",
7-
"type": "extensionHost",
8-
"request": "launch",
9-
"runtimeExecutable": "${execPath}",
10-
"args": [
11-
"--extensionDevelopmentPath=${workspaceRoot}"
12-
],
13-
"stopOnEntry": false,
14-
"sourceMaps": true,
15-
"outDir": "${workspaceRoot}/out",
16-
"preLaunchTask": "npm"
17-
},
18-
{
19-
"name": "Launch Extension as debugServer", // https://code.visualstudio.com/docs/extensions/example-debuggers
20-
"type": "node",
21-
"request": "launch",
22-
"program": "${workspaceRoot}/out/client/debugger/Main.js",
23-
"stopOnEntry": false,
24-
"args": [
25-
"--server=4711"
26-
],
27-
"sourceMaps": true,
28-
"outDir": "${workspaceRoot}/out/client",
29-
"cwd": "${workspaceRoot}"
30-
},
31-
{
32-
"name": "Launch Tests",
33-
"type": "extensionHost",
34-
"request": "launch",
35-
"runtimeExecutable": "${execPath}",
36-
"args": [
37-
"${workspaceRoot}/src/test",
38-
"--extensionDevelopmentPath=${workspaceRoot}",
39-
"--extensionTestsPath=${workspaceRoot}/out/test"
40-
],
41-
"stopOnEntry": false,
42-
"sourceMaps": true,
43-
"outDir": "${workspaceRoot}/out/test",
44-
"preLaunchTask": "npm"
45-
},
46-
{
47-
"name": "Python",
48-
"type": "python",
49-
"request": "launch",
50-
"stopOnEntry": true,
51-
"pythonPath": "python",
52-
"program": "${file}",
53-
"console": "integratedTerminal",
54-
"args": [],
55-
"debugOptions": [
56-
"WaitOnAbnormalExit",
57-
"WaitOnNormalExit",
58-
"RedirectOutput"
59-
],
60-
"cwd": "${workspaceRoot}"
61-
}
62-
]
63-
}
3+
"version": "0.1.0",
4+
"configurations": [{
5+
"name": "Launch Extension",
6+
"type": "extensionHost",
7+
"request": "launch",
8+
"runtimeExecutable": "${execPath}",
9+
"args": [
10+
"--extensionDevelopmentPath=${workspaceRoot}"
11+
],
12+
"stopOnEntry": false,
13+
"sourceMaps": true,
14+
"outDir": "${workspaceRoot}/out",
15+
"preLaunchTask": "npm"
16+
},
17+
{
18+
"name": "Launch Extension as debugServer", // https://code.visualstudio.com/docs/extensions/example-debuggers
19+
"type": "node",
20+
"request": "launch",
21+
"program": "${workspaceRoot}/out/client/debugger/Main.js",
22+
"stopOnEntry": false,
23+
"args": [
24+
"--server=4711"
25+
],
26+
"sourceMaps": true,
27+
"outDir": "${workspaceRoot}/out/client",
28+
"cwd": "${workspaceRoot}"
29+
},
30+
{
31+
"name": "Launch Tests",
32+
"type": "extensionHost",
33+
"request": "launch",
34+
"runtimeExecutable": "${execPath}",
35+
"args": [
36+
"${workspaceRoot}/src/test",
37+
"--extensionDevelopmentPath=${workspaceRoot}",
38+
"--extensionTestsPath=${workspaceRoot}/out/test"
39+
],
40+
"stopOnEntry": false,
41+
"sourceMaps": true,
42+
"outDir": "${workspaceRoot}/out/test",
43+
"preLaunchTask": "npm"
44+
},
45+
{
46+
"name": "Python",
47+
"type": "python",
48+
"request": "launch",
49+
"stopOnEntry": true,
50+
"pythonPath": "python",
51+
"program": "${file}",
52+
"console": "integratedTerminal",
53+
"args": [],
54+
"debugOptions": [
55+
"WaitOnAbnormalExit",
56+
"WaitOnNormalExit",
57+
"RedirectOutput"
58+
],
59+
"cwd": "${workspaceRoot}"
60+
}
61+
],
62+
"compounds": [{
63+
"name": "Extension + Debugger",
64+
"configurations": [
65+
"Launch Extension", "Launch Extension as debugServer"
66+
]
67+
}]
68+
}

0 commit comments

Comments
 (0)