Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48980

Ionic capacitor android emulator make Console log visible in terminal

$
0
0

I would like to be able to see console.log messages in terminal when using Android emulator with capacitor.

HTML:

<button class="btn btn-danger" (click)="callSomething($event)">
  Console something
</button>

TS:

  public callSomething() {
    console.log('Hello  World!!!');
  }
  • @ionic/angular”: “^5.5.2”

  • @capacitor/core”: “3.0.2”

when I click button “console something”, nothing is printed in terminal

Terminal Command:

ionic capacitor run android --livereload --external --consolelogs

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48980

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>