|
|
@@ -0,0 +1,64 @@
|
|
|
+{
|
|
|
+ "version": "0.2.1",
|
|
|
+ "configurations": [
|
|
|
+ {
|
|
|
+ "name": "Debug Electron Main Process",
|
|
|
+ "type": "node",
|
|
|
+ "request": "launch",
|
|
|
+ "cwd": "${workspaceFolder}",
|
|
|
+ "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron",
|
|
|
+ "args": [
|
|
|
+ ".",
|
|
|
+ "--enable-dev-menu",
|
|
|
+ "--enable-dev-tools"
|
|
|
+ ],
|
|
|
+ "outputCapture": "std",
|
|
|
+ "console": "integratedTerminal",
|
|
|
+ "skipFiles": [
|
|
|
+ "<node_internals>/**"
|
|
|
+ ],
|
|
|
+ "env": {
|
|
|
+ "NODE_ENV": "development"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "Debug Electron Renderer Process",
|
|
|
+ "type": "chrome",
|
|
|
+ "request": "attach",
|
|
|
+ "port": 9222,
|
|
|
+ "webRoot": "${workspaceFolder}/src",
|
|
|
+ "timeout": 30000,
|
|
|
+ "skipFiles": [
|
|
|
+ "**/node_modules/**"
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "Debug Electron (Both Processes)",
|
|
|
+ "type": "node",
|
|
|
+ "request": "launch",
|
|
|
+ "cwd": "${workspaceFolder}",
|
|
|
+ "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron",
|
|
|
+ "args": [
|
|
|
+ ".",
|
|
|
+ "--enable-dev-menu",
|
|
|
+ "--enable-dev-tools",
|
|
|
+ "--remote-debugging-port=9222"
|
|
|
+ ],
|
|
|
+ "outputCapture": "std",
|
|
|
+ "console": "integratedTerminal",
|
|
|
+ "skipFiles": [
|
|
|
+ "<node_internals>/**"
|
|
|
+ ],
|
|
|
+ "env": {
|
|
|
+ "NODE_ENV": "development"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "compounds": [
|
|
|
+ {
|
|
|
+ "name": "Debug Electron (Main + Renderer)",
|
|
|
+ "configurations": ["Debug Electron (Both Processes)", "Debug Electron Renderer Process"],
|
|
|
+ "stopAll": true
|
|
|
+ }
|
|
|
+ ]
|
|
|
+}
|