google-chromegoogle-chrome-extensionlocal-storagegoogle-chrome-devtools

How do I view the storage of a Chrome Extension I've installed?


It seems like it should be possible to view the localStorage/chrome.storage of Chrome Extensions installed on my browser. I've played around with the Developer Tools a bit, but haven't found a way to do this. Any ideas?


Solution

  • I will proceed to amalgamate the existing knowledge present in several answers, into a simple and comprehensive one. If you vote up this one, please do the same with the ones from @mwkwok and @chaohuang.

    It is true that stuff saved using chrome.storage does not show up in developer tools, there you can only see stuff saved using regular localStorage API. Do this:

    1. Open your extension's background page by going to chrome://extensions/ ("Developer mode" needs to be checked to see background pages)

    2. Go to the Console tab and type this:

    chrome.storage.local.get(console.log)

    This will spit the whole storage as a JSON object into the console.