I'm building a NativeScript app using Platform and inbrowser client. I livesync down to a device for testing.
Debugging is troublesome, because half the console.log() messages don't seem to appear, and at the moment there is no stacktrace when the app throws an error, NativeScript just exits.
Is there anything I can do to try to diagnose what is going wrong? Usually I can find my issue, but I have a gnarly one that I can't resolve. If I go from my home page to another then back to home, and repeat this about 5 times, the app then exits. On a Galaxy S2 I get a friendly "Unfortunately NativeScript has stopped". On a Huawei M2 the app just disappears and I am left looking at the Companion app's list of apps.
I have started to put try/catch blocks into my code, and throw up a dialog.alert(). However I'm not sure this is going to help me through this one. Is there anything else I can do? I am beginning to consider installing nativescript locally, as it is getting too hard to test & debug using Platform.