electron-react-boilerplate 如何调试

1.修改 package.json,增加 –inspect=5858

1
    "start-main-dev": "cross-env HOT=1 NODE_ENV=development electron -r @babel/register --inspect=5858 ./app/main.dev.js",

2.访问 chrome://inspect/#devices。点击 Configure 增加 5858 端口