I've built an app with Electron and used Electron-Builder to create a Squirrel windows installer and updater. It all works great but I'm having trouble debugging the production version of my app.
Are the logs created by a console.log
written somewhere on disk when using the production version? If so, where can I find them? Or are those all removed when compiling the executable? There must be some kind of log file for my app right?
I've found the SquirrelSetupLog in C:\Users\Tieme\AppData\Local\MyApp\SquirrelSetupLog
but that's not enough for debugging my production-only problem.
Just came across electron-log. That could work if regular console logs are indeed not written to disk somewhere..
console.log
statements in real time when executing the built exe (like you do when runningnpm start
), if you are on Windows, call the app executable from cmd usingstart "" yourapp.exe
- you will be able to see the console.log statements from main.js on the cmd. – Overpower