Skip to content

Instantly share code, notes, and snippets.

@YoungjaeKim
Created February 18, 2018 12:19
Show Gist options
  • Save YoungjaeKim/f00d1ea293d20c3291265e2573c5e729 to your computer and use it in GitHub Desktop.
Save YoungjaeKim/f00d1ea293d20c3291265e2573c5e729 to your computer and use it in GitHub Desktop.
VSCode launch.js configuration for electron
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/starter.js --2nd",
"stopOnEntry": false,
"args": [],
"cwd": "${workspaceRoot}",
"preLaunchTask": null,
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
"runtimeArgs": [
".",
"--enable-logging"
],
"env": {},
"console": "internalConsole",
"sourceMaps": false,
"outDir": null,
"windows": {
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd"
},
"osx": {
"runtimeExecutable": "${workspaceRoot}/node_modules/electron/dist/Electron.app/Contents/MacOS/Electron"
}
},
{
"name": "Attach",
"type": "node",
"request": "attach",
"port": 5858,
"address": "localhost",
"restart": false,
"sourceMaps": false,
"outDir": null,
"localRoot": "${workspaceRoot}",
"remoteRoot": null
},
{
"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"
},
"osx": {
"runtimeExecutable": "${workspaceRoot}/node_modules/electron/dist/Electron.app/Contents/MacOS/Electron"
}
},
{
"name": "Electron: Renderer",
"type": "node",
"protocol": "inspector",
"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