How to debug electron app?
Hi there. I'm currently trying to debug an open source electron app. The npm start command script is the following:
"start": "cross-env NODE_ENV=development electron -r @babel/register src/index.js"
any ideas on how to set the debugger up properly? I can't seem to figure it out.
Please sign in to leave a comment.
Please see https://blog.jetbrains.com/webstorm/2016/05/getting-started-with-electron-in-webstorm/
Unfortunately this guide doesn't cover all of the options passed in with the start command the open source project uses.
I'm not quite sure how to adapt the debugging config to include these additional options
You can add
-r @babel/registerto Node parameters and set
NODE_ENV=developmentin the Environment variables field. You won't need cross-env then