Search code examples
androidibm-mobilefirst

Viewing server logs in Eclipse when running a MobileFirst Hybrid App on Android Emulator


I am running an IBM MobileFirst Platform Hybrid App in the Android Emulator.

I want to see the debug messages in Eclipse Console (WL.Logger.debug() statements in main.js). Is this possible?

When I run the same app in Xcode on an iOS simulator,I can see these debug messages in Xcode's console.

Please let me know how can I do this.


Solution

  • Did you look in LogCat...?

    In Eclipse, go to Window > Show View > Other... > search for "LogCat".
    Now when you run your application in the Android Emulator (or a physical device, doesn't matter), simply make sure to look in the LogCat view.

    You may need to first select the device from the "Devices" view (add it as well while adding the "LogCat" view).

    You will then see WL.Logger.debug statements from any client-side file (not adapters) in the LogCat.