1
1
{
2
- "version" : " 0.2.0" ,
3
- "configurations" : [
4
- {
5
- "name" : " Electron: Main" ,
6
- "type" : " node" ,
7
- "request" : " launch" ,
8
- "protocol" : " inspector" ,
9
- "runtimeExecutable" : " ${workspaceRoot}/node_modules/.bin/electron" ,
10
- "windows" : {
11
- "runtimeExecutable" : " ${workspaceRoot}/node_modules/.bin/electron.cmd"
12
- },
13
- "preLaunchTask" : " electron-debug" ,
14
- "args" : [" --remote-debugging-port=9223" , " ./dist_electron" ],
15
- "outFiles" : [" ${workspaceFolder}/dist_electron/**/*.js" ],
16
- "env" : {
17
- "IS_DEBUG" : " true"
2
+ "version" : " 0.2.0" ,
3
+ "configurations" : [
4
+ {
5
+ "name" : " Debug Main Process" ,
6
+ "type" : " node" ,
7
+ "request" : " launch" ,
8
+ "cwd" : " ${workspaceRoot}" ,
9
+ "runtimeExecutable" : " ${workspaceRoot}/node_modules/.bin/electron-vite" ,
10
+ "windows" : {
11
+ "runtimeExecutable" : " ${workspaceRoot}/node_modules/.bin/electron-vite.cmd"
18
12
},
19
- },
20
- {
21
- "name" : " Electron: Renderer" ,
22
- "type" : " chrome" ,
23
- "request" : " attach" ,
24
- "port" : 9223 ,
25
- "urlFilter" : " http://localhost:*" ,
26
- "timeout" : 30000 ,
27
- "webRoot" : " ${workspaceFolder}/src" ,
28
- "sourceMapPathOverrides" : {
29
- "webpack:///./src/*" : " ${webRoot}/*"
30
- },
13
+ "runtimeArgs" : [" --sourcemap" ],
14
+ "env" : {
15
+ "REMOTE_DEBUGGING_PORT" : " 9222"
16
+ }
17
+ },
18
+ {
19
+ "name" : " Debug Renderer Process" ,
20
+ "port" : 9222 ,
21
+ "request" : " attach" ,
22
+ "type" : " chrome" ,
23
+ "webRoot" : " ${workspaceFolder}/src/renderer" ,
24
+ "timeout" : 60000 ,
25
+ "presentation" : {
26
+ "hidden" : true
31
27
}
32
- ],
33
- "compounds" : [
34
- {
35
- "name" : " Electron: All" ,
36
- "configurations" : [" Electron: Main" , " Electron: Renderer" ]
28
+ }
29
+ ],
30
+ "compounds" : [
31
+ {
32
+ "name" : " Debug All" ,
33
+ "configurations" : [" Debug Main Process" , " Debug Renderer Process" ],
34
+ "presentation" : {
35
+ "order" : 1
37
36
}
38
- ]
39
- }
37
+ }
38
+ ]
39
+ }
0 commit comments