Stetho 
Stetho is a sophisticated debug bridge for Android applications. When enabled,
developers have access to the Chrome Developer Tools feature natively part of
the Chrome desktop browser. Developers can also choose to enable the optional
dumpapp tool which offers a powerful command-line interface to application
internals.
Once you complete the set-up instructions below, just start your app and point
your laptop browser to chrome://inspect. Click the "Inspect" button to
begin.
Set-up
Download
Download the latest JARs or grab via Gradle:
implementation 'com.facebook.stetho:stetho:1.6.0'
or Maven:
<dependency>
<groupId>com.facebook.stetho</groupId>
<artifactId>stetho</artifactId>
<version>1.6.0</version>
</dependency>
Only the main stetho dependency is strictly required; however, you may also wish to use one of the network helpers:
implementation 'com.facebook.stetho:stetho-okhttp3:1.6.0'
or:
implementation 'com.facebook.stetho:stetho-urlconnection:1.6.0'
You can also enable a JavaScript console with:
implementation 'com.facebook.stetho:stetho-js-rhino:1.6.0'
For more details on how to customize the JavaScript runtime see stetho-js-rhino.
Putting it together
Integrating with Stetho is intended to be seamless and straightforward for
most existing Android applications. There is a simple initialization step
which occurs in your Application class:
public class MyApplication extends Application {
public void onCreate() {
super.onCreate();
Stetho.initializeWithDefaults(this);
}
}