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.

3 comments

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

0

You can add

-r @babel/register

to Node parameters and set

NODE_ENV=development

in the Environment variables field. You won't need cross-env then

0

Please sign in to leave a comment.