Skip to content

Commit

Permalink
Added dbug option for vscode to be able to set breakpoints in the fro…
Browse files Browse the repository at this point in the history
…ntend and backend at the same time
  • Loading branch information
sanmont committed Dec 30, 2024
1 parent a4f7937 commit 4ba9fb4
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,40 @@
"cwd": "${workspaceFolder}",
"runtimeExecutable": "pnpm",
"args": ["start"]
},
{
"name": "Debug Main Process",
"type": "node",
"request": "launch",
"cwd": "${workspaceRoot}",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron-vite",
"windows": {
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron-vite.cmd"
},
"runtimeArgs": ["--sourcemap"],
"env": {
"REMOTE_DEBUGGING_PORT": "9222"
}
},
{
"name": "Debug Renderer Process",
"port": 9222,
"request": "attach",
"type": "chrome",
"webRoot": "${workspaceFolder}/src/frontend",
"timeout": 60000,
"presentation": {
"hidden": true
}
}
],
"compounds": [
{
"name": "Debug All",
"configurations": ["Debug Main Process", "Debug Renderer Process"],
"presentation": {
"order": 1
}
}
]
}

0 comments on commit 4ba9fb4

Please sign in to comment.