From fddfba6cfb7006ba77bbe5064922698a709a181b Mon Sep 17 00:00:00 2001 From: njanssen Date: Thu, 24 Sep 2020 21:39:43 +0200 Subject: Added VSCode launch config for debugging the main and renderer process --- .vscode/launch.json | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..0d56ffe --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,35 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Debug Main Process", + "type": "node", + "request": "launch", + "cwd": "${workspaceFolder}/desktop", + "runtimeExecutable": "${workspaceFolder}/desktop/node_modules/.bin/electron", + "windows": { + "runtimeExecutable": "${workspaceFolder}/desktop/node_modules/.bin/electron.cmd" + }, + "args": ["."], + "outputCapture": "std", + "sourceMaps": true + }, + { + "name": "Debug Renderer Process", + "type": "chrome", + "request": "launch", + "runtimeExecutable": "${workspaceRoot}/desktop/node_modules/.bin/electron", + "windows": { + "runtimeExecutable": "${workspaceRoot}/desktop/node_modules/.bin/electron.cmd" + }, + "runtimeArgs": [ + "${workspaceRoot}/desktop/main.js", + "--remote-debugging-port=9222" + ], + "webRoot": "${workspaceRoot}/desktop/" + } + ] +} -- cgit v1.2.3