使用 Stetho 时,我在 Chrome DevTools 中的 Web SQL 中看到 "truncated"
I am seeing "truncated" inside Web SQL in Chrome DevTools when using Stetho
我正在使用 Stheto 检查我的 Android 应用程序中的数据库,但是当 table 中有很多对象时,我在所有列中看到 "truncated"。我怎样才能看到它们?
原因是 Stetho 内部的限制。在class
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;
所以如果你真的需要更大的数字,你可以更改库的源代码,并添加一个不同的最大值。
我正在使用 Stheto 检查我的 Android 应用程序中的数据库,但是当 table 中有很多对象时,我在所有列中看到 "truncated"。我怎样才能看到它们?
原因是 Stetho 内部的限制。在class
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;
所以如果你真的需要更大的数字,你可以更改库的源代码,并添加一个不同的最大值。