Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to view the local storage of a Windows 8 Store application in debugger?

In my Windows 8 store application I keep all data in the local storage and I need to debug the data update. Is there any way to access the storage from Visual Studio 2012 debugger to see what data the application currently works with?

like image 684
Alexander Galkin Avatar asked Sep 21 '12 19:09

Alexander Galkin


People also ask

How to access local storage in browser?

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.

Where is local storage data stored?

LocalStorage is a datastore available in browsers. Data is stored as key/value pairs of strings, and each domain has access to its LocalStorage. When storing JavaScript objects, be sure to correctly convert them to a string with JSON. stringify() before saving.

Do not launch but debug my code when it starts?

To disable automatic app startup:For C# and Visual Basic apps, select Do not launch, but debug my code when it starts under Start options on the Debug property page. For C++ apps, select No from the Launch Application dropdown on the Debugging property page.

How do I find local storage on Android?

To view the storage data on Chrome Android, tap on the three dots in the corner of Chrome and go to Settings>Site Settings>Data Stored. You will be able to view the size of cache storage of all the sites.


2 Answers

Why look in the debugger? You can get the location and then go look in the file using Windows Explorer. Use the debugger to get the location from

Windows.Storage.ApplicationData.Current.LocalFolder;

and then open that location in Windows Explorer.

like image 76
N_A Avatar answered Oct 15 '22 12:10

N_A


Another way is tu run:

System.Diagnostics.Debug.WriteLine(Windows.Storage.ApplicationData.Current.LocalFolder.Path);

which shows exact path in Output window.

like image 35
ignacy130 Avatar answered Oct 15 '22 12:10

ignacy130