Skip to content

Instantly share code, notes, and snippets.

@janosorcsik
Last active January 27, 2019 17:26
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 janosorcsik/3640c5373367a6e4a45243031bd3572a to your computer and use it in GitHub Desktop.
Save janosorcsik/3640c5373367a6e4a45243031bd3572a to your computer and use it in GitHub Desktop.
Launch.json for Electron debuggin in VS Code
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Electron: Main",
"protocol": "inspector",
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron",
"runtimeArgs": [
".",
"--enable-logging",
"--remote-debugging-port=9223",
]
},
{
"name": "Electron: Renderer",
"type": "chrome",
"request": "attach",
"port": 9223,
"webRoot": "${workspaceFolder}",
"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