调试Android平台的离子应用程序 [英] debugging an ionic app for android platform
问题描述
有什么方法可以调试我的Android平台的离子应用程序?
我曾经研究过一些关于调试的知识,并了解了有关chrome远程调试的知识。
手机显示在连接的设备和文档中 https://developer.chrome.com/devtools/docs/remote-debugging 建议在webview类中添加上述代码行。我怎么做?
离子中的web视图类的等价物是什么?
我听说有人将它添加到他们想要调试的html视图中,但这是否表明我需要将它添加到每个html页面以防我需要调试所有的应用程序?在这种情况下,这听起来不太好。
另外,如果还有其他更简单的方法来调试离子应用程序,我会很感激,如果提到。
此外,我不拥有4.4 +版本的Android。所以很高兴知道支持android 4.1的替代品。尝试设置标志 android :debuggable =true
到你的AndroidManifest.xml中?或者使用模拟器通过使用 ionic emulate android
。
否则,尝试使用 ionic run --debug android
。
I have been working with ionic and my application works fine using ionic serve.
However, as soon as I launch the apk in android, it gives white death screen and stays there.
What are the ways in which I can debug my ionic app for android platform?
I once researched a bit about debugging and got to know about chrome remote debugging.
The phone shows up in connected device and the documentation https://developer.chrome.com/devtools/docs/remote-debugging suggests to add the mentioned line of code in webview class. How do I do that? What is the equivalent of web view class in ionic?
I hear people adding it to html views they want to debug but does that suggest that I need to add it to every html page in case I need to debug all my app? It does not sound such a great solution in that case.
Can I please get some help on this?
Also, if there are other simpler ways to debug ionic app, I would really appreciate if mentioned.
Besides, I do not own android with 4.4 + ver. so would be glad to know about alternatives that support android 4.1 .
Try to set the flag android:debuggable="true"
into your AndroidManifest.xml? Or use the emulator by using ionic emulate android
.
Otherwise try to run your app with ionic run --debug android
.
这篇关于调试Android平台的离子应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!