如何用离子调试Android模拟器? [英] How to debug Android emulator with ionic?

查看:175
本文介绍了如何用离子调试Android模拟器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用离子,我正在编写一个应用程序,我正在尝试使用Android模拟器进行测试。我可以成功构建甚至将应用程序添加到模拟器中,但是当我单击应用程序时,它甚至会在加载主页之前立即死亡。

Using ionic, I am writing an app which I am trying to test with an Android emulator. I can successfully build and even add the app to the emulator but when I click the app it immediately dies before even loading the home page.

有没有调试这个?我已经尝试运行控制台日志和服务器日志,但没有任何输出。我也尝试通过Chrome进行调试( https://developer.chrome.com/devtools/docs /远程调试)。但即使设备显示在列表中,它也没有任何选项,例如'inspect','focus tab','reload',也没有'close'。它只显示模拟器的名称。

Is there anyway to debug this? I have tried running consolelogs and serverlogs but nothing is getting outputted. I have also tried debugging through Chrome (https://developer.chrome.com/devtools/docs/remote-debugging). But even though the device shows up in the list it does not have any of the options such as 'inspect', 'focus tab', 'reload', nor 'close'. It just displays the emulator's name.

推荐答案

运行 adb logcat 单独的终端。

当您运行模拟器时,您的终端应填充日志。

As you run the emulator your terminal should populate with logs.

这篇关于如何用离子调试Android模拟器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆