4

StethoとStetho Realmを使用しています。Android stetho Google開発者ツールのリソースが切り捨て

Stetho.initialize(
       Stetho.newInitializerBuilder(this) 
         .enableDumpapp(Stetho.defaultDumperPluginsProvider(this)) 
         .enableWebKitInspector(RealmInspectorModulesProvider.builder(this).build()) 
         .build()); 

私は、GoogleのデベロッパーコンソールでレルムDBの内容を見ることができていますが、最大インデックスは、切り捨てられ、その後、すべての値249である -

enter image description here

どのように表示するためにそれを強制することができますすべての値?

答えて

6

この理由は、Stetho内の制限です。クラス

com.facebook.stetho.inspector.protocol.module.Database

https://github.com/facebook/stetho/blob/36aa5bd356d9cf5893b9424b06a83dda9ec5e44f/stetho/src/main/java/com/facebook/stetho/inspector/protocol/module/Database.java

ではこの情報がある -

/** 
    * The protocol doesn't offer an efficient means of pagination or anything like that so 
    * we'll just cap the result list to some arbitrarily large number that I think folks will 
    * actually need in practice. 
    * <p> 
    * Note that when this limit is exceeded, a dummy row will be introduced that indicates 
    * truncation occurred. 
    */ 
    private static final int MAX_EXECUTE_RESULTS = 250; 

はとレルムStethoための場合には、このway-

に制限を変更することが可能です
Stetho.initialize(
       Stetho.newInitializerBuilder(this) 
         .enableDumpapp(Stetho.defaultDumperPluginsProvider(this)) 
         .enableWebKitInspector(RealmInspectorModulesProvider.builder(this) 
           .withFolder(getCacheDir()) 
           .withMetaTables() 
           .withDescendingOrder() 
           .withLimit(100000) 
           .build()) 
         .build()); 
関連する問題