railsware / bozon

🛠 Command line tool for building, testing and publishing modern Electron applications
MIT License
758 stars 52 forks source link

Debugging in DevTools #58

Closed Lars- closed 5 years ago

Lars- commented 5 years ago

Hello,

Is it possible to debug the main process in the devtools? Webpack is adding that closure, so I can't easily debug. Also I can't get require to work for local files, how do I use that?

Thanks!

alchaplinsky commented 5 years ago

You can use --inspect or --inspect-brk switches to enable debugging of the main process