From dd583dbe4f37a5bef99244fa4ec551b81002c430 Mon Sep 17 00:00:00 2001 From: Lucas Dower Date: Sat, 6 Nov 2021 20:32:50 +0000 Subject: [PATCH] Added VSCode debugging launch options --- .vscode/launch.json | 31 +++++++++++++++++++++++++++++++ tsconfig.json | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..4b15114 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,31 @@ +{ + // 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": [ + { + "type": "node", + "request": "launch", + "name": "Debug Main Process", + "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron", + "program": "${workspaceRoot}/index.js", + "runtimeArgs": [ + ".", + // this args for attaching render process + "--remote-debugging-port=9222" + ], + "windows": { + "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd" + }, + "protocol": "legacy" + }, + { + "type": "chrome", + "request": "attach", + "name": "Attach to Render Process", + "port": 9222, + "webRoot": "${workspaceRoot}/html" + } + ] +} \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index f879638..9bfab2a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,7 +13,7 @@ // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', 'react', 'react-jsx' or 'react-jsxdev'. */ // "declaration": true, /* Generates corresponding '.d.ts' file. */ // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ - // "sourceMap": true, /* Generates corresponding '.map' file. */ + "sourceMap": true, /* Generates corresponding '.map' file. */ // "outFile": "./", /* Concatenate and emit output to single file. */ "outDir": "./dist", /* Redirect output structure to the directory. */ // "rootDir": "./src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */