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.

Comment actions Permalink

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

Comment actions Permalink

You can add

-r @babel/register

to Node parameters and set


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


Please sign in to leave a comment.