Open GrabbenD opened 3 years ago
I found that I could debug the nodejs code using adb logcat -s "nodejs"
(filters logcat logs by "nodejs" tag)
Hello, I know to too late for this, put this at the top of your main.js to prevent app from exiting on error.
process.on('uncaughtException', function (e) { Error.captureStackTrace(e); });
Whenever there's an exception such as typeerror in
main.js
, the app exits abruptly. Is there any way to prevent this behaviour? For instance, wrapping the code inside a try/catch doesn't always work.To reproduce the issue, try this in
main.js
: