I have an android app that stores data using Realm. I view the data using Stetho. But don't know how to edit the data directly from Stetho.
Asked
Active
Viewed 1,761 times
1 Answers
2
First you need to add the dependency to gradle:
stetho-js-rhino
Then, in chrome browser
- Go to
chrome://inspect/#devices
Inspect
(make sure your device is connected properly)- In the
resources
tab in the stetho console you will findshow drawer
- Click in
Web SQL
on your database name in the leftside menu ...
Now you are able to display or alter the tabledata with the same commands as in sqlite.
For more information go to:
http://facebook.github.io/stetho/
https://sqlite.org/docs.html
In case the dependency is missing you will get the following error:

true_gler
- 544
- 6
- 23
-
1to add the rhino dependency, update build.gradle with: `implementation 'com.facebook.stetho:stetho-js-rhino:1.5.0'` – Someone Somewhere Oct 10 '18 at 20:13
-
not working for editing.. am im doing something wrong? – Blue Bot Oct 01 '19 at 15:57
-
I have the same issue as @BlueBot - I can see DB contents, but have no idea how to execute queries. I type the query, press enter... and nothing happens. How do I execute it? – JustAMartin Jun 19 '20 at 15:07
-
Oh, it's a Chrome bug: https://github.com/facebook/stetho/issues/634 – JustAMartin Jun 19 '20 at 15:19