question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Seems to be not working on Windows

See original GitHub issue

Hi Alex,

I’m trying to print a message in a main process. I’ve started with a very (very) basic sample - cloned https://github.com/electron/electron-quick-start, put console.log and run electron . - nothing showing.
Then I installed your module, added log.warn and run electron . - same result, no console output (besides file output is present).
Am I doing something completely wrong, or may it’s not possible at all to show console logs from main.js on Windows?
My environment:

electron 1.6.11
node 6.10.1
windows server 2012R2 (can be considered as Windows 10)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
s-KaiNetcommented, Jun 25, 2017

Yes, I was able to make it work by running node_modules\electron\dist\electron.exe full/path/to/main.js
As far as I understand when running just electron main.js it spawns the process thus making communication between input\output impossible (at least on windows).
electron main.js --enable-logging also doesn’t produce any output. Only approach with full path to electron executable works for me.

0reactions
megahertzcommented, Jun 25, 2017

Did you solve the problem? I can also recommend to try:

  • run electron with --enable-logging flag
  • try newer electron version

If nothing works than try to check if a simple node (not electron) script can write to console correctly

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows not working properly anymore
Hi guys, I have a problem with windows 10 on my laptop that started a few weeks back and until now I have...
Read more >
17 most common Windows 10 problems and how to fix them
1. Can't upgrade from Windows 7 or Windows 8 · 2. Can't upgrade to the latest Windows 10 version · 3. You have...
Read more >
Why Does My Computer Not Work?
See the steps below for all power-related troubleshooting steps. Why won't my computer turn on?
Read more >
Why Windows 10 Becomes Unresponsive & How to Fix It?
Open System Settings and follow Apps > Apps & features. · Choose the application which seems to be causing the problem with your...
Read more >
Audio Not Working in Windows 10? 9 Ways to Fix Sound ...
Suffering from a problem where the audio is not working on your Windows 10 PC? It's quite frustrating to have no sound on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found