See the console.error exit in Cordova?

0

I am programming an application in angular2 for cordova, when I run it in the browser emulator it works without problems:

> cordova run browser

The problem occurs when I package it in an apk and install it in android:

> cordova run android

the application is frozen in the load of it, it would be very useful to see the outputs of console.error in the emulator either by Android Studio or another tool.

    
asked by Ricardo D. Quiroga 17.08.2017 в 21:37
source

1 answer

1

To listen to the console.error output, use the ADB, a command-line tool that is installed as part of the Android SDK.

The ADB is installed by default here:

% AppData% \ Local \ Android \ android-sdk \ platform-tools \ adb.exe

And a basic command to listen to the cell phone's output (with the equipment connected via USB) would be:

adb logcat

ADB allows you to filter messages by package:

adb logcat com.tuempresa.tuapp:I *:S
    
answered by 17.08.2017 / 22:36
source