jrquick jrquick - 1 year ago 180
Android Question

How to debug Android emulator with ionic?

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.

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.

Answer Source

Run adb logcat in a separate terminal.

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download