Android finding all the commands ran on a database using adb -


i have database in android app. creating table in database , adding rows table. on lifetime of table's rows added/modified/deleted.

i want debug 1 particular row see if getting set particular value ever or not.

is there way can find sequence of commands ran on database beginning of app ?

adb shell setprop log.tag.sqlitestatements verbose

or

you can apply own sqlitedatabase.cursorfactory database. (see opendatabase parameters.) allow create own subclass of cursor, keeps query in accessible field.

edit: in fact, may not have subclass cursor. have factory's newcursor() method return standard sqlitecursor, log query before doing so.

source: logging sql queries in android


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -