This repository has been archived by the owner on Oct 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
launch.json
73 lines (63 loc) · 1.83 KB
/
launch.json
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Electron (Main)",
"type": "node",
"request": "launch",
"skipFiles": ["<node_internals>/**"],
"cwd": "${workspaceRoot}",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
"runtimeArgs": [
"--remote-debugging-port=9223" //open debugging port for renderer process
],
"program": "${workspaceRoot}/app/main.js",
"args": ["."],
"outputCapture": "console",
"sourceMaps": true,
"console": "internalConsole",
"internalConsoleOptions": "openOnSessionStart"
},
{
"name": "Electron (Main) [pre-compile]",
"type": "node",
"request": "launch",
"skipFiles": ["<node_internals>/**"],
"cwd": "${workspaceRoot}",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
"runtimeArgs": [
"--remote-debugging-port=9223" //open debugging port for renderer process
],
"program": "${workspaceRoot}/app/main.js",
"args": ["."],
"outputCapture": "console",
"sourceMaps": true,
"console": "internalConsole",
"internalConsoleOptions": "openOnSessionStart",
"preLaunchTask": "npm: tsc-all" // compile TypeScript
},
{
// This is internally used for debugging TypeScript if launched with Main process (see "Electron (All)" compound)
"name": "Electron (Renderer)",
"request": "attach",
"type": "chrome",
"port": 9223,
"webRoot": "${workspaceFolder}",
"timeout": 10000,
"internalConsoleOptions": "openOnSessionStart",
"outputCapture": "console"
}
],
"compounds": [
{
"name": "Electron (All)",
"configurations": [
"Electron (Main)",
"Electron (Renderer)"
]
}
]
}