title: Debugging sqlite database on the device
body: <p>I am presently working on an WiFi application for Android. I am having trouble trying to access the database on the device. Debugging in the emulator doesn't work for me, because there is no WiFi support in the emulator. I tried pulling the database file out of the device by using </p>
  
  <pre><code>adb pull data/data/package-name/databases/database-name
  </code></pre>
  
  <p>But I get the error "Permission denied.". 
  In this answer <a href="https://stackoverflow.com/questions/1105219/android-where-are-database-files-stored/1106563#1106563">Android: Where are database files stored?</a>, Commonsware has suggested to pull database file by running in debug mode. But it doesn't work too. Any help on how to debug the database without rooting the device would be much appreciated.</p>