Skip to content
This repository has been archived by the owner on Jun 11, 2022. It is now read-only.

Commit

Permalink
Add VS Code debug configuration
Browse files Browse the repository at this point in the history
If you are using VS Code you can debug "Electron: Main" to debug main process (main.js), "Electron: Renderer" to debug renderer process (other files - renderer.js and game.js) or "Electron: All" to debug both processes.
  • Loading branch information
krzysdz committed Apr 11, 2018
1 parent 3695c28 commit 108d795
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Electron: Main",
"protocol": "inspector",
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron",
"runtimeArgs": [
"--remote-debugging-port=9223",
"."
],
"windows": {
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron.cmd"
}
},
{
"name": "Electron: Renderer",
"type": "chrome",
"request": "attach",
"port": 9223,
"webRoot": "${workspaceFolder}",
"timeout": 30000
}
],
"compounds": [
{
"name": "Electron: All",
"configurations": [
"Electron: Main",
"Electron: Renderer"
]
}
]
}

0 comments on commit 108d795

Please sign in to comment.