From 6d56cbf1a50b5577adaeb826b8fdbc74daa55d22 Mon Sep 17 00:00:00 2001 From: luhc228 Date: Thu, 27 May 2021 19:37:28 +0800 Subject: [PATCH] fix: fail to debug --- .vscode/launch.json | 13 ++++++------- main/tsconfig.json | 5 +++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index a18fc61..7ac1152 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -6,12 +6,11 @@ "type": "node", "request": "launch", "cwd": "${workspaceFolder}", - "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron", - "windows": { - "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron.cmd" - }, - "program": "${workspaceRoot}/dist/index.js", - "args" : ["./dist"] + "runtimeExecutable": "npm", + "args": [ + "run", + "start:electron" + ], } ] -} +} \ No newline at end of file diff --git a/main/tsconfig.json b/main/tsconfig.json index 030c9f0..c8ada21 100644 --- a/main/tsconfig.json +++ b/main/tsconfig.json @@ -5,6 +5,7 @@ "rootDir": "./", "outDir": "../dist", "target": "es5", - "moduleResolution": "node" + "moduleResolution": "node", + "sourceMap": true } -} +} \ No newline at end of file