如何开启database的详细log
时间:10-02
整理:3721RD
点击:
[DESCRIPTION]
调试问题 时,经常需要database操作的详细log,如何打开相关log?
[SOLUTION]
[Step 1] create 一個檔案叫 local.prop 裡面寫
log.tag.SQLiteStatements=VERBOSE
log.tag.SQLiteTime=VERBOSE
log.tag.SQLiteQueryBuilder=VERBOSE
log.tag.SQLiteDatabase=VERBOSE
log.tag.SQLiteConnection=VERBOSE
log.tag. Debug_Cursor = VERBOSE
log.tag.DBStaleDataTrace = VERBOSE
log.tag.sqlite3 = VERBOSE
[Step 2] push 到 /data/ 目錄下
adb push local.prop /data/
adb shell chmod 750 /data/local.prop
adb shell reboot
调试问题 时,经常需要database操作的详细log,如何打开相关log?
[SOLUTION]
[Step 1] create 一個檔案叫 local.prop 裡面寫
log.tag.SQLiteStatements=VERBOSE
log.tag.SQLiteTime=VERBOSE
log.tag.SQLiteQueryBuilder=VERBOSE
log.tag.SQLiteDatabase=VERBOSE
log.tag.SQLiteConnection=VERBOSE
log.tag. Debug_Cursor = VERBOSE
log.tag.DBStaleDataTrace = VERBOSE
log.tag.sqlite3 = VERBOSE
[Step 2] push 到 /data/ 目錄下
adb push local.prop /data/
adb shell chmod 750 /data/local.prop
adb shell reboot
签到专用组
:lol:lol:lol