title: Capacitor compiled Ionic app: How to debug in Android Studio?
body: <p>I used the command</p>
  
  <pre><code>ngx cap open android
  </code></pre>
  
  <p>to open my Ionic 5 project in Android Studio like described <a href="https://capacitor.ionicframework.com/docs/getting-started/with-ionic" rel="noreferrer">here</a>. This works fine. </p>
  
  <p>In my app, i`m connecting to server which returns json data needed by my app. This connection does not seem to work, I only have the loading animation in my app.</p>
  
  <p>How can I debug this? It is working in the PWA version and on my Ionic testserver, but the app has a problem connecting. I need an error message or something, to know what goes wrong.</p>
  
  <p>What is a good way to fix such problems? Can I output or log something in android studio from the typescript code?</p>