Viewing local storage contents on IE
Solution 1
Since localStorage is a global object, you can add a watch in the dev tools. Just enter the dev tools, goto "watch", click on "Click to add..." and type in "localStorage".
Solution 2
In IE11, you can see local storage in console on dev tools:
- Show dev tools (press F12)
- Click "Console" or press Ctrl+2
- Type
localStorage
and press Enter
Also, if you need to clear the localStorage, type localStorage.clear()
on console.
Solution 3
Edge (as opposed to IE11) has a better UI for Local storage / Session storage and cookies:
- Open Dev tools (F12)
- Go to Debugger tab
- Click the folder icon to show a list of resources - opens in a separate tab
govin
I'm a software practitioner. My technical interests are in C#, Java, web programming, data access tech and writing efficient and testable solutions. Most of my experience has been in C#. I'm presently learning Java to get an in-depth understanding of the language. I'm interested in building great products that solve a real need. Stackoverflow is great community. Like many other developers, I have also immensely benefited from it. I'm happy that I can contribute back to it in my own little way with questions, answers and edits.
Updated on July 05, 2022Comments
-
govin almost 2 years
How can I view the contents of HTML5 local storage in IE? Chrome and FireFox provide a way through their developer tools to view the contents of local storage but I couldn't find that information using IE9 developer tool.
-
Wayne Weibel over 10 yearsIs there a way to manipulate the storage without issuing commands through the console? ie. localStorage.removeItem
-
Luke almost 9 yearsWell... as long as you have a console, you can always see and interact with the localStorage.. but the native dev tools you have on Chrome or Firefox to fiddle with the local storage are way more easy and informative (..and sadly this is still true on IE11, AFAIK..)
-
Pete Alvin over 8 yearsFYI my IE 11, after clicking the folder, shows the loaded scripts, but NOT the following sub-folders: Local Storage, Session Storage, etc., as illustrated in the image above.
-
funkadelic over 8 years@PeteAlvin I didn't see it in IE 11 on Win 8, but did see it on Win 10
-
ebhh2001 almost 8 yearsSame here. Don't see the storage folders in IE11 on Win 8.1.
-
DerMike about 7 yearsSame here. Don't see the storage folder in IE11 in Win7
-
Chewy over 6 yearsWindows 10, IE 11 - no Local (or session) storage folder.
-
Scott Martin over 5 years@ the above... this answer is talking about Edge, not IE11.
-
Sorin about 5 yearsIf you need to add anything to localstorage: localStorage.setItem(newItem, 'hello'); for removing: localStorage.removeItem(newItem);