How to view or edit localStorage
I created a Chrome extension and am using localStorage for storing data.
I am accessing localStorage through "background_page".
It works fine but how can I manually view its values? In Firefox you can use Firebug.
Anyone have any suggestions?
Solution 1:
It's simple. Just go to the developer tools by pressing F12, then go to the Application tab. In the Storage section expand Local Storage. After that, you'll see all your browser's local storage there.
Solution 2:
Open the Developer Tools by pressing F12.
Click on the Application tab and you will see localStorage's content. From there you can add/edit/delete the entries manually.
On OS X the keys are: ⌥ + ⌘ + i
Another combination: Ctrl + Shift + i
In Chrome it looks like this:
Solution 3:
You can go to chrome://chrome/extensions and there will be a link to your background page that once you launch you can use the Dev Tools to see the localStorage stuff.
Solution 4:
I am using chrome Version 52.0.2743.82 m currently. In this lastest version of chrome as of now, you can see the local storage values by launching "Developer Tools" and then looking into "Application" tab.