How to debug electron binaries ( if its already built )


#1

Is there any good way to get some console.logs from an electron application if its already built?
Obviously i can debug the “development” version (running npm run dev) of my electron app by opening the chrome dev tools. But i can’t find any way to enable them inside my production application.
I am using the newsest version of https://github.com/SimulatedGREG/electron-vue
Thanks for any help in advance.


#2

same here !!! is there any way to debug the final electron binaries. am using the express and sqlite for server side scripting and angular4 for front end. integrated and working fine in development. but not in production mode…


#3

I managed to turn on devtools in production mode by opening the console inside the main script where the mainWindow instance is being created.

mainWindow.webContents.openDevTools();