ionic-cli: Console.logs not working when using android emulator (v3)

What version of the CLI are you using? Output of ionic --version

3.0.0-beta9

Short description of the problem:

Run ionic cordova emulate android -c This only opens emulator and installs the app. Does not maintain the ionic-cli terminal as livereload does hence no connected terminal that can output console.log values.

What behavior are you expecting?

The ionic-cli terminal remains connected to emulator. Any value entered in console.log to be printed on the command line terminal.

Steps to reproduce:

  1. Ensure cordova-plugin-console is installed
  2. Run ionic cordova emulate android -c

Post the output of ionic info below please npm (global):

@ionic/cli-utils : 1.0.0-beta0
cordova          : 6.5.0
ionic            : 3.0.0-beta9

npm (local):

@ionic/app-scripts              : 1.3.4
@ionic/cli-plugin-cordova       : 1.0.0-beta0
@ionic/cli-plugin-ionic-angular : 1.0.0-beta0
Ionic Framework                 : ionic-angular 3.0.1

System:

Node       : v6.10.2
OS         : Windows 10
Xcode      : not installed
ios-deploy : not installed
ios-sim    : not installed

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 2
  • Comments: 15 (3 by maintainers)

Commits related to this issue

Most upvoted comments

@ylacast I find an alternative way to see console.log(). I use the chrome device inspector. When emulator is ready and app lunch go to this address in Chrome : chrome://inspect/#devices Then you should find your device in the Remote Target section and you can inspect it. Then a new window open and you can now inspect console log in dev console tools in Chrome. With option -l for livereload when you modify the code of your app the emulator and chrome reload too. Sorry for my bad english.

@dwieeb any new ? it’s very hard to dev without console.log exept through adb logcat