4 ms·
I would like to see more tools to see what is stored inside localStorage. Right now, afaik, there is not easy way to inspect.
by newman314 15y ago
I would like to see more tools to see what is stored inside localStorage. Right now, afaik, there is not easy way to inspect.
- kinlan 15y agoChrome DevTools and Safari (and I am sure FF) have had tools for a long time to see inside localStorage. It is inspection tools for IndexedDB we haven't got.
- kinlan 15y agoActually according to http://peter.sh/2012/02/scoped-styles-deflated-websockets-and-the-vibration-api/ http://peter.sh/2012/02/scoped-styles-deflated-websockets-an... we now have IndexedDB inspection in the latest Chromium (behind a flag).
- masklinn 15y ago> and I am sure FF It's pretty primitive, you have to go into the DOM tab for `window` and scroll down to `localStorage`. Same for `globalStorage`.
- wslh 15y agoIt is a sqlite database (in Google Chrome and Firefox), so with the sqlite console you can access the database.
- mike-cardwell 15y agofor( var i = localStorage.length - 1; i >= 0; --i ){ var key = localStorage.key(i); console.log( key + ": " + localStorage.getItem(key) ); }
- pixelcort 15y agoTip: To get a random localStorage key: localStorage.key(Math.random()*localStorage.length)