Created
April 9, 2018 07:01
-
-
Save ragingwind/057646a247c94535ce6dacb5b4da334d to your computer and use it in GitHub Desktop.
Debugging electron app with vscode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Electron: Main", | |
"protocol": "inspector", | |
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron", | |
"runtimeArgs": [ | |
".", | |
"--remote-debugging-port=9223" | |
], | |
"windows": { | |
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd" | |
} | |
}, | |
{ | |
"name": "Electron: Renderer", | |
"type": "chrome", | |
"request": "attach", | |
"port": 9223, | |
"webRoot": "${workspaceRoot}", | |
"timeout": 30000 | |
} | |
], | |
"compounds": [ | |
{ | |
"name": "Electron: All", | |
"configurations": [ | |
"Electron: Main", | |
"Electron: Renderer" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment