Skip to content

Commit 6282883

Browse files
author
Akos Kitta
committed
launch config to start with dev tools + w/o splash
Signed-off-by: Akos Kitta <[email protected]>
1 parent d3d6e89 commit 6282883

File tree

1 file changed

+38
-4
lines changed

1 file changed

+38
-4
lines changed

.vscode/launch.json

+38-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@
44
{
55
"type": "node",
66
"request": "launch",
7-
"name": "App (Electron)",
7+
"name": "App (Electron) [Dev]",
88
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
99
"windows": {
1010
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd",
1111
},
1212
"cwd": "${workspaceFolder}/electron-app",
13-
"protocol": "inspector",
1413
"args": [
1514
".",
1615
"--log-level=debug",
@@ -21,7 +20,43 @@
2120
"--no-app-auto-install",
2221
"--plugins=local-dir:../plugins",
2322
"--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"
2560
],
2661
"env": {
2762
"NODE_ENV": "development"
@@ -79,7 +114,6 @@
79114
{
80115
"type": "node",
81116
"request": "launch",
82-
"protocol": "inspector",
83117
"name": "Run Test [current]",
84118
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
85119
"args": [

0 commit comments

Comments
 (0)