4

I know how to check what localStorage values are stored in chrome by using the developer resource panel, but how do you check what is stored in chrome.storage? I know how to do it via programming but its a bit of a faff just to quickly check what values are stored. I have done some searches but this time google was not my friend :(

Regards,

2
  • What is wrong with the tool you have? what are you looking for exactly? Commented Sep 25, 2012 at 17:20
  • @epascarello Please see my comment in your answer below. Commented Sep 25, 2012 at 17:32

2 Answers 2

4

OK, I have found one way but it is not great. you can use the javascript console. Make sure you are in the context of the extension whose storage data you want to examine. Input this command:

chrome.storage.local.get(null, function (Items) {console.log(Items)}); 

(You can change "local" to "sync" if that is what you are looking for.) This will output all data stored in chrome.storage for that extension.

As I say it is not great and if anyone has a better suggestion, I would be very grateful.

Regards,

Sign up to request clarification or add additional context in comments.

Comments

0

I am still not sure what you are asking, or what your probelm is exactly with the tool you already have.

There are plenty of add ons https://chrome.google.com/webstore/search/localstorage

Of you want to do it with code, you can loop through the keys.

for (var key in localStorage){ console.log(key + ":\t" + localStorage[key]); } 

or

var localStorageKeys = Object.keys(localStorage); 

1 Comment

Hi, Thanks for your response. I think you have confused the HTML5 localStorage (which can be seen in the resource panel) and chrome.storage (which is chromes own version and, as far as I am aware, cannot be seen in the resource panel). Chrome.Storage comes in two flavours chrome.storage.local and chrome.storage.sync, I am interested in viewing local, although sync would be helpful for future reference also.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.