Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 623
Lucas.Feichtinger Avatar asked Jan 24 '26 07:01

Lucas.Feichtinger


1 Answers

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.
like image 54
jcesarmobile Avatar answered Jan 26 '26 16:01

jcesarmobile