See Long-term content on local storage in Safari.

I am trying to see all the contents of a single value stored in local storage in Safari (this is a long JSON object). When I look at a key / value pair, this value is too large for the screen, and copying the line copies only the visible part of the value. Is there any way to see the whole line?

+12
source share
1 answer

You can access it using the Safari Web Inspector console. Just enter the command:

localStorage.getItem('yourKeyNameHere') 

and it will output the full value of the local storage to the console.

Use session storage

 sessionStorage.getItem('yourKeyNameHere') 
+15
source

Source: https://habr.com/ru/post/1012172/


All Articles