Skip to content

Instantly share code, notes, and snippets.

@dusansimic
Created May 1, 2023 12:27
Show Gist options
  • Save dusansimic/63c1527c99155ebcc43b87f43ad581ec to your computer and use it in GitHub Desktop.
Save dusansimic/63c1527c99155ebcc43b87f43ad581ec to your computer and use it in GitHub Desktop.
launch configuration for vscode for debugging electron applications
{
// 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