Skip to content

Instantly share code, notes, and snippets.

@ragingwind
Created April 9, 2018 07:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ragingwind/057646a247c94535ce6dacb5b4da334d to your computer and use it in GitHub Desktop.
Save ragingwind/057646a247c94535ce6dacb5b4da334d to your computer and use it in GitHub Desktop.
Debugging electron app with vscode
{
"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