Android stetho Herramientas de Google Developer recursos truncados
Usando Stetho y Stetho Realm.
Stetho.initialize( Stetho.newInitializerBuilder(this) .enableDumpapp(Stetho.defaultDumperPluginsProvider(this)) .enableWebKitInspector(RealmInspectorModulesProvider.builder(this).build()) .build());
Puedo ver el contenido de Realm DB con Google Developer Console, pero el índice máximo es 249, todos los valores después de que se truncan –
¿Cómo puedo forzarla a mostrar todos los valores?
La razón de esto es el límite dentro de Stetho. En la clase
com.facebook.stetho.inspector.protocol.module.Database
Hay esta información –
/** * 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;
Y en el caso de Realm Stetho, es posible cambiar el límite de esta manera,
Stetho.initialize( Stetho.newInitializerBuilder(this) .enableDumpapp(Stetho.defaultDumperPluginsProvider(this)) .enableWebKitInspector(RealmInspectorModulesProvider.builder(this) .withFolder(getCacheDir()) .withMetaTables() .withDescendingOrder() .withLimit(100000) .build()) .build());