branchseer / DeskGap

A cross-platform desktop app framework based on Node.js and the system webview
https://deskgap.com/
MIT License
1.83k stars 73 forks source link

console.log not working on main script #69

Open KaKi87 opened 3 years ago

dirkk0 commented 3 years ago

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.

KaKi87 commented 3 years ago

I was actually talking about logging from renderer.

dirkk0 commented 3 years ago

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.

KaKi87 commented 3 years ago

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

KaKi87 commented 3 years ago

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

dirkk0 commented 3 years ago

@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.