From 3add3d5dde6d268c09fe9261f456c35c565e444c Mon Sep 17 00:00:00 2001 From: Isaiah Inuwa Date: Thu, 6 Nov 2025 14:58:12 -0600 Subject: [PATCH] Add Electron renderer process debug configuration --- apps/desktop/.vscode/launch.json | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/apps/desktop/.vscode/launch.json b/apps/desktop/.vscode/launch.json index 66c1161be46..df54c4e5ba2 100644 --- a/apps/desktop/.vscode/launch.json +++ b/apps/desktop/.vscode/launch.json @@ -6,11 +6,28 @@ "type": "node", "request": "launch", "cwd": "${workspaceRoot}/build", - "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron", + "runtimeExecutable": "${workspaceRoot}/../../node_modules/.bin/electron", "windows": { - "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd" + "runtimeExecutable": "${workspaceRoot}/../../node_modules/.bin/electron.cmd" }, - "args": ["."] + "args": [".", "--remote-debugging-port=9223"] + }, + { + "name": "Debug Renderer Process", + "type": "chrome", + "request": "attach", + "port": 9223, + "webRoot": "${workspaceFolder}", + "timeout": 30000, + } + ], + "compounds": [ + { + "name": "Debug Electron: All", + "configurations": [ + "Debug Main Process", + "Debug Renderer Process" + ] } ] }