在 Eclipse 中从 dalvikvm (Android) 解析 debuginfo
我正在 Eclipse 中制作一个使用 SQLite 的小型 Android 应用程序。它运作得很好。当我出于好奇浏览 Logcat 查找一些消息时,我发现了这些重复:
06-03 18:40:26.721: INFO/dalvikvm(697): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.SQLiteCursor@43ba3230 on audiovideo that has not been deactivated or closed
谷歌搜索我发现该错误是由于我忘记了 cursor.close()
引起的。但是,为了将来参考,我怎样才能让 DDMS/Logcat 告诉我这个错误与哪个光标有关?此时我知道它是什么(我手动搜索了所有源代码),但随着我的代码变得越来越大,让 DDMS 为我指明可以提取数据的方向会很好。就目前而言,调试信息窗口中转储的所有内容对我来说都是无法理解的。
I'm making a small Android-app in Eclipse that uses SQLite. It works quite well. When I out of the curiosity browsed through Logcat for some messages, I found repetives of these:
06-03 18:40:26.721: INFO/dalvikvm(697): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.SQLiteCursor@43ba3230 on audiovideo that has not been deactivated or closed
Googling around I found that the error is caused by me forgetting a cursor.close()
. However, for future reference, how can I get DDMS/Logcat tell me which cursor this error is about? At this point I know which it is (I manually searched all the source code), but as my code grows bigger it would be nice to let DDMS point me in a direction where I can extract data. As for now, everything that's dumped in the debug-info window is uncomprehensible for me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论