|
4 | 4 | {
|
5 | 5 | "type": "node",
|
6 | 6 | "request": "launch",
|
7 |
| - "name": "App (Electron)", |
| 7 | + "name": "App (Electron) [Dev]", |
8 | 8 | "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
|
9 | 9 | "windows": {
|
10 | 10 | "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd",
|
11 | 11 | },
|
12 | 12 | "cwd": "${workspaceFolder}/electron-app",
|
13 |
| - "protocol": "inspector", |
14 | 13 | "args": [
|
15 | 14 | ".",
|
16 | 15 | "--log-level=debug",
|
|
21 | 20 | "--no-app-auto-install",
|
22 | 21 | "--plugins=local-dir:../plugins",
|
23 | 22 | "--hosted-plugin-inspect=9339",
|
24 |
| - "--nosplash" |
| 23 | + "--nosplash", |
| 24 | + "--open-devtools" |
| 25 | + ], |
| 26 | + "env": { |
| 27 | + "NODE_ENV": "development" |
| 28 | + }, |
| 29 | + "sourceMaps": true, |
| 30 | + "outFiles": [ |
| 31 | + "${workspaceRoot}/electron-app/src-gen/backend/*.js", |
| 32 | + "${workspaceRoot}/electron-app/src-gen/frontend/*.js", |
| 33 | + "${workspaceRoot}/electron-app/lib/**/*.js", |
| 34 | + "${workspaceRoot}/arduino-ide-extension/lib/**/*.js", |
| 35 | + "${workspaceRoot}/node_modules/@theia/**/*.js" |
| 36 | + ], |
| 37 | + "smartStep": true, |
| 38 | + "internalConsoleOptions": "openOnSessionStart", |
| 39 | + "outputCapture": "std" |
| 40 | + }, |
| 41 | + { |
| 42 | + "type": "node", |
| 43 | + "request": "launch", |
| 44 | + "name": "App (Electron)", |
| 45 | + "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron", |
| 46 | + "windows": { |
| 47 | + "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd", |
| 48 | + }, |
| 49 | + "cwd": "${workspaceFolder}/electron-app", |
| 50 | + "args": [ |
| 51 | + ".", |
| 52 | + "--log-level=debug", |
| 53 | + "--hostname=localhost", |
| 54 | + "--no-cluster", |
| 55 | + "--app-project-path=${workspaceRoot}/electron-app", |
| 56 | + "--remote-debugging-port=9222", |
| 57 | + "--no-app-auto-install", |
| 58 | + "--plugins=local-dir:../plugins", |
| 59 | + "--hosted-plugin-inspect=9339" |
25 | 60 | ],
|
26 | 61 | "env": {
|
27 | 62 | "NODE_ENV": "development"
|
|
79 | 114 | {
|
80 | 115 | "type": "node",
|
81 | 116 | "request": "launch",
|
82 |
| - "protocol": "inspector", |
83 | 117 | "name": "Run Test [current]",
|
84 | 118 | "program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
|
85 | 119 | "args": [
|
|
0 commit comments