4

Stetho 및 Stetho Realm 사용.Android stetho Google 개발자 도구 리소스가 잘 렸습니다

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

나는 구글 개발자 콘솔과 영역 DB의 내용을 볼 수 있어요,하지만 최대 인덱스는 모든 값은 그 후 잘립니다, 249입니다 -

enter image description here

어떻게 보여 강제 할 수 모든 값은?

답변

6

이유는 Stetho 내부 한계입니다.

/** 
    * 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에 대한 경우

,이

을 방법 -에 한계를 변경할 수 있습니다 - 클래스에서

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

가이 정보입니다

Stetho.initialize(
       Stetho.newInitializerBuilder(this) 
         .enableDumpapp(Stetho.defaultDumperPluginsProvider(this)) 
         .enableWebKitInspector(RealmInspectorModulesProvider.builder(this) 
           .withFolder(getCacheDir()) 
           .withMetaTables() 
           .withDescendingOrder() 
           .withLimit(100000) 
           .build()) 
         .build());