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?
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.
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.
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.
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.
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.
Another way is tu run:
System.Diagnostics.Debug.WriteLine(Windows.Storage.ApplicationData.Current.LocalFolder.Path);
which shows exact path in Output window.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With