Nativescript:Android 应用程序在模拟器切换选项卡中崩溃但在控制台中没有任何内容

Nativescript: Android app crashing in emulator switching tabs but nothing in console

我有一个 nativescript iOS 应用程序,我刚开始试用 Android。它加载成功,但在 TabView 中切换选项卡一段时间后,应用程序崩溃了,但我在终端控制台中看不到它的任何迹象。我看到的最新事件是:

JS: '{NSVue (Vue: 2.6.10 | NSVue: 2.4.0)} -> AppendChild(ElementNode(nativegridlayout), ElementNode(nativelabel))'
JS: '{NSVue (Vue: 2.6.10 | NSVue: 2.4.0)} -> CreateElement(nativebutton)'
JS: '{NSVue (Vue: 2.6.10 | NSVue: 2.4.0)} -> AppendChild(ElementNode(nativegridlayout), ElementNode(nativebutton))'
JS: '{NSVue (Vue: 2.6.10 | NSVue: 2.4.0)} -> AppendChild(ElementNode(nativegridlayout), ElementNode(nativegridlayout))'
JS: '{NSVue (Vue: 2.6.10 | NSVue: 2.4.0)} -> AppendChild(ElementNode(nativepage), ElementNode(nativegridlayout))'
JS: '{NSVue (Vue: 2.6.10 | NSVue: 2.4.0)} -> CreateElement(nativeimage)'
JS: '{NSVue (Vue: 2.6.10 | NSVue: 2.4.0)} -> CreateElement(nativeimage)'

有没有更好的方法可以在我开发它时指出问题所在?

是 - 将代码包装在 try/catch 块中。当然,运行 在出现异常时暂停的调试器中。