Skip to content

Instantly share code, notes, and snippets.

@spreadred
Created August 15, 2017 15:50
Show Gist options
  • Save spreadred/783e20c9dd5dc96ad3b8f5dbff6eec1f to your computer and use it in GitHub Desktop.
Save spreadred/783e20c9dd5dc96ad3b8f5dbff6eec1f to your computer and use it in GitHub Desktop.
launch.json to enable integrated debugging of an Electron app in VSCode on Windows
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Main Process",
"type": "node",
"request": "launch",
"cwd": "${workspaceRoot}",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd",
"protocol": "legacy",
"args" : ["."]
}
]
}
@spreadred
Copy link
Author

Debug attempts were timing out before adding "protocol": "legacy"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment