From b7d7f48a3c996d455aa60f76990237e5eb1aabbc Mon Sep 17 00:00:00 2001 From: thegecko Date: Thu, 19 Sep 2019 16:10:58 +0100 Subject: [PATCH] Add electron backend and composite electron launchSigned-off-by: thegecko --- .vscode/launch.json | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 6f3facdbdc819..80a9d380a0b9b 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -31,6 +31,7 @@ "--hostname=localhost", "--no-cluster", "--app-project-path=${workspaceRoot}/examples/electron", + "--remote-debugging-port=9222", "--no-app-auto-install" ], "env": { @@ -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", @@ -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", @@ -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", @@ -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", @@ -167,5 +174,14 @@ "${workspaceFolder}/../.js" ] } + ], + "compounds": [ + { + "name": "Launch Electron Backend & Frontend", + "configurations": [ + "Launch Electron Backend", + "Attach to Electron Frontend" + ] + } ] }