我正在使用Stheto在我的Android应用程序中检查数据库,但是当表中有很多对象时,我在所有列中看到"截断".我怎么能看到他们呢?
原因是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;
Run Code Online (Sandbox Code Playgroud)
因此,如果您真的需要更大的数字,您可以更改库的源代码,并添加不同的Max.
| 归档时间: |
|
| 查看次数: |
703 次 |
| 最近记录: |