Android Debug/View App Database With Stetho

Dec 3, 2019

Edit app's build.gradle.

dependencies {
    implementation 'com.facebook.stetho:stetho:1.5.1'
}

Edit Application class

class MyApp: Application() {    override fun onCreate() {        super.onCreate()        Stetho.initializeWithDefaults(this)    }}

Launch the app on emulator or device.

Open Chrome browser on your desktop and visit chrome://inspect.

Wait for a while for the device and app's package name to appear.

Click inspect.

Chrome Inspect

Click on Resources (top tab), then expand WebSQL.

Chrome Browse Database

NOTE: This work for release build as well, as long as the device enable USB debugging

References:

❤️ Is this article helpful?

Buy me a coffee ☕ or support my work via PayPal to keep this space 🖖 and ad-free.

Do send some 💖 to @d_luaz or share this article.

✨ By Desmond Lua

A dream boy who enjoys making apps, travelling and making youtube videos. Follow me on @d_luaz

👶 Apps I built

Travelopy - discover travel places in Malaysia, Singapore, Taiwan, Japan.