Finding the HTML5 localStorage file on OS X and Windows 7

Just a quick tip if you’re ever doing iPhone development with the iPhone Simulator in Max OS X.

If your webapp is using HTML5 localStorage, then you can find the SQLite file available for your review by navigating to:

[UserName]\Library\Application Support\iPhone Simulator\[iPhone OS Version]\Library\WebKit\LocalStorage\[url].localstorage

You can then quickly drag and drop it onto the SQLite data browser for your viewing pleasure.

On Windows 7 with desktop Safari, you can do the same thing by going to:

C:\Users\[UserName]\AppData\Local\Apple Computer\Safari\LocalStorage\[url].localstorage