electron-webpack-quick-start
electron-webpack-quick-start copied to clipboard
need help: how to debug src/main/xxxxx.js in VS CODE?
Any help, hint or sample will be really appreciated!
You can try the following launch.json, I was able to hit a breakpoint in index.js
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Electron: Main",
"protocol": "inspector",
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron-webpack",
"runtimeArgs": [
"dev",
],
"windows": {
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron-webpack.cmd"
}
},
]
}