Lucas.Feichtinger
Lucas.Feichtinger

Reputation: 194

Android Studio and Capacitor cannot finde console.log() output

I have a Angular Application that i converted via Capacitor to a Android App. If i start my app in Android Studio i cannot access my Nodejs. Therefor i want to use the console.log() to see where my problem is.

But i cant find an output of my log, even though its there in the web console.

Upvotes: 15

Views: 7029

Answers (1)

jcesarmobile
jcesarmobile

Reputation: 53341

You can see Capacitor logs in two different places.

  1. Chrome remote inspector, just type this in your Desktop Chrome chrome://inspect/#devices and your device should appear there and a list of webs and apps that can be debugged, choose your app and you'll see all the console.logs there.
  2. Logcat. Inside Android Studio on the bottom on the screen there should be a Logcat section, if you click it it should show console.log messages and also native messages.

Upvotes: 29

Related Questions