6
我正在使用Stheto檢查我的Android應用程序中的數據庫,但在所有列中出現「截斷」桌子。我怎樣才能看到他們呢?使用Stetho時,我在Chrome DevTools中的Web SQL中看到「截斷」
我正在使用Stheto檢查我的Android應用程序中的數據庫,但在所有列中出現「截斷」桌子。我怎樣才能看到他們呢?使用Stetho時,我在Chrome DevTools中的Web SQL中看到「截斷」
原因是Stetho內部存在限制。在類
com.facebook.stetho.inspector.protocol.module.Database
有了這個信息 -
/**
* 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;
所以,如果你真的需要一個比較大的數字,你可以更改庫的源代碼,並添加不同的最大值。
這個值應該暴露在設置中! /捂臉 –