开发者

How to view SQL database in Eclipse Debug mode for android

I am looking for a way t开发者_如何学Goo see realtime (as I debug) what is in my SQL database.

Does anyone know how to do this? I have tried looking through the variables tab but can't seem to find anything.


Open view Window->Show View->File Explorer.
In this view go to data/data/"your app name"/databases/"your database" This is you database file.
I use Questoid SQLite browser (It was available in www.questoid.com/Forums/tabid/59/aff/9/aft/7/afv/topic/Default.aspx) plugin for eclipse.


I don't know of any way to view it through Eclipse but you can perform queries on the database through the ADB. Check out Examining sqlite3 Databases from a Remote Shell.


Hi I just found how to show tables on eclipse,

if the database Icon still Gray :

Preference -> Android -> DDMS ->

select open in eclipse instead of save on the disqu...

good luck :)


Database is stored in data/data/your package name/your database name.


Follow below step:-

  1. Download .jar file

  2. Place the plugin .jar file in your Eclipse plugins folder (e.g. /usr/lib/eclipse/plugins)

  3. Restart Eclipse

  4. Start up an Android Emulator w/ Debugging in Eclipse

  5. Switch to the DDMS Perspective in Eclipse

  6. Go to the 'File Explorer' tab to locate your device's database file

  7. Navigate to: e.g. 'data -> data -> com.myproject -> databases -> myproject

  8. Open the database file in Questoid (see screen shot)

  9. Switch to the 'Questoid SQLite Browser' tab that appears (mine appears next to LogCat by default)

  10. Switch to the 'Browse Data' sub tab Select your table from the drop down menu Browse your data here and onward into the digital sunset

refer link

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜