Skip to content

Commit

Permalink
Add electron backend and composite electron launch
Browse files Browse the repository at this point in the history
Signed-off-by: thegecko <rob.moran@arm.com>
  • Loading branch information
thegecko committed Sep 19, 2019
1 parent 24f77b3 commit d57428d
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"--hostname=localhost",
"--no-cluster",
"--app-project-path=${workspaceRoot}/examples/electron",
"--remote-debugging-port=9222",
"--no-app-auto-install"
],
"env": {
Expand All @@ -51,7 +52,7 @@
{
"type": "node",
"request": "launch",
"name": "Launch Backend",
"name": "Launch Browser Backend",
"program": "${workspaceRoot}/examples/browser/src-gen/backend/main.js",
"args": [
"--hostname=0.0.0.0",
Expand Down Expand Up @@ -93,7 +94,7 @@
{
"type": "node",
"request": "launch",
"name": "Launch Backend (eclipse.jdt.ls)",
"name": "Launch Browser Backend (eclipse.jdt.ls)",
"program": "${workspaceRoot}/examples/browser/src-gen/backend/main.js",
"args": [
"--log-level=debug",
Expand All @@ -120,7 +121,7 @@
"type": "node",
"request": "launch",
"protocol": "inspector",
"name": "Run Mocha Test",
"name": "Run Mocha Tests",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"args": [
"--no-timeouts",
Expand All @@ -138,12 +139,18 @@
"outputCapture": "std"
},
{
"name": "Launch Frontend",
"name": "Launch Browser Frontend",
"type": "chrome",
"request": "launch",
"url": "http://localhost:3000/",
"webRoot": "${workspaceRoot}"
},
{
"type": "chrome",
"request": "attach",
"name": "Attach to Electron Frontend",
"port": 9222
},
{
"name": "Launch VS Code Tests",
"type": "node",
Expand All @@ -167,5 +174,14 @@
"${workspaceFolder}/../.js"
]
}
],
"compounds": [
{
"name": "Electron Backend & Frontend",
"configurations": [
"Launch Electron Backend",
"Attach to Electron Frontend"
]
}
]
}

0 comments on commit d57428d

Please sign in to comment.