DeskGap icon indicating copy to clipboard operation
DeskGap copied to clipboard

console.log not working on main script

Open KaKi87 opened this issue 4 years ago • 6 comments

KaKi87 avatar Dec 12 '20 19:12 KaKi87

It does work. If you put it in main.js, it shows up on the console - if you start it on the command line, that is. Otherwise you are not able to see it.

dirkk0 avatar Feb 28 '21 10:02 dirkk0

I was actually talking about logging from renderer.

KaKi87 avatar Feb 28 '21 10:02 KaKi87

ok, that would be the js in app.html, and same thing, if you open the developer console, you should be able see it. I just tried it.

dirkk0 avatar Feb 28 '21 11:02 dirkk0

Well, devtools seem to be painful to set up so I was wondering if I could just see my logs on the terminal

KaKi87 avatar Feb 28 '21 12:02 KaKi87

In the meantime I used Eruda, which works well, for a temporary solution.

KaKi87 avatar Feb 28 '21 12:02 KaKi87

@console you could send the logs to the nodejs/server side with messageUI.send('message-to-server', message) and console log them there. @eruda wasn't aware of that, thanks for sharing.

dirkk0 avatar Feb 28 '21 12:02 dirkk0