title: How can I debug an Android application using ADB/AM?
body: <p>I am using AIDE as an Android IDE. This application built my project successfully and produced the corresponding APK file.</p>
  
  <p>I would like to debug my project. Currently I:</p>
  
  <ul>
  <li><p>open a terminal emulator</p></li>
  <li><p>move to my android project (# not necessary action as app was installed )</p>
  
  <pre><code>$ cd /sdcard/AppProjects/myproject
  </code></pre></li>
  <li><p>start <code>adb</code></p>
  
  <pre><code>$ adb shell
  </code></pre></li>
  <li><p>launch my application with <code>am</code></p>
  
  <pre><code>$ am start --user 10 -a android.intent.action.MAIN -n org.package.app/org.package.app.MainActivity
  </code></pre></li>
  </ul>
  
  <p>But how do I debug this application?</p>