Stetho调试工具

GitHub - facebook/stetho: Stetho is a debug bridge for Android applications, enabling the powerful Chrome Developer Tools and much more.

作用

利用浏览器来调试安卓网络及数据库

使用说明

1.添加 stetho 主依赖

   dependencies { 
     compile 'com.facebook.stetho:stetho:1.4.1' 
   }

2.初始化

public class MyApplication extends Application {
   public void onCreate() {
     super.onCreate();
     Stetho.initializeWithDefaults(this);
   }
 }

3.调试

打开Chrome输入chrome://inspect/#devices
Paste_Image.png

参考:
1.http://www.jianshu.com/p/03da9f91f41f

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容