I can\'t open devtools in the built version of my electron app. Therefore i want to find another solution to log any errors that only occur in the production version.
Is
In the main/index.js at the end of section app.on('ready') just add:
mainWindow.webContents.openDevTools();
Just for debugging, when electron opens an empty window, but the development version works fine, this way is very helpful for me.