electron-webpack-quick-start icon indicating copy to clipboard operation
electron-webpack-quick-start copied to clipboard

need help: how to debug src/main/xxxxx.js in VS CODE?

Open ghost opened this issue 7 years ago • 1 comments

Any help, hint or sample will be really appreciated!

ghost avatar Jul 17 '18 16:07 ghost

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"
            }
        },
    ]
}

Yamazaki93 avatar Jul 28 '18 00:07 Yamazaki93