Debugging the main process with Electron Forge


Sorry in advance if this is the wrong place to post this. I was directed here by following links from

I’m trying to figure out how to debug the main process with Chrome DevTools on an app being built and run by Electron Forge. More specifically, I want the functionality of node’s --inspect-brk flag. But all I can find is this page: The only option there is --inspect-electron. I have tried --inspect-electron-brk and --inspect-brk-electron, but neither flag is recognized.

Is there a way for me to get the behavior of --inspect-brk with Electron Forge?

Thank you!


I should clarify. I have Electron Forge 5.2.2. The docs I linked to previously are at But the --inspect-electron flag does seem to work, so I suppose it has been around since at least EF5.