我看到"截断"使用Stetho时,Chrome DevTools中的Web SQL内部

时间:2016-04-04 02:55:02

标签: android stetho

我正在使用Stheto检查我的Android应用中的数据库,但我看到"截断"当表中有很多对象时,在我的所有列中。我怎么能看到它们呢?

1 个答案:

答案 0 :(得分:5)

原因是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

有这个信息 -

  /**
   * 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;

因此,如果您确实需要更大的数字,可以更改库的源代码,并添加不同的Max。

相关问题