Created
May 1, 2023 12:27
-
-
Save dusansimic/63c1527c99155ebcc43b87f43ad581ec to your computer and use it in GitHub Desktop.
launch configuration for vscode for debugging electron applications
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Electron: Main", | |
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron", | |
"runtimeArgs": [ | |
"--remote-debugging-port=9222", | |
".", | |
], | |
"sourceMaps": true, | |
"resolveSourceMapLocations": [ | |
"${workspaceFolder}/**", | |
"!**/node_modules/**", | |
], | |
"preLaunchTask": "npm: build", | |
}, | |
{ | |
"type": "chrome", | |
"request": "attach", | |
"name": "Electron: Renderer", | |
"port": 9222, | |
"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