I have taken over an Electron project from another developer.
The problem I am facing is that the project does not show any errors. Even including something like throw "this is an error"
does not produce any output on the main process or render process consoles or any sort of standard error popup.
I have checked to confirm that electron-unhandled
is not in use and that nothing registers 'uncaughtException'
.
What am I missing that could cause this behavior?
Search for: unhandledRejection
May look something like this:
process.on('unhandledRejection', function (err) {
});
Also, make sure you include any modules in your searching for suppressors as the issue may exist somewhere in the node_modules directory and many IDE's (mine does by default) exclude that directory in indexing/searches.
Another possible reason could be stdout
and/or stderr
redirection, the problem is this could be achieved by several ways so it's hard to suggest you what to check...
If there is some child_process
call to launch a sub-process you could check the stdio
array used, or you can check if some low level operation is performed against file descriptors 1 and 2...
Hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With