Check this article out: iPad HTTP Debugging with Charles
This approach is extremely useful and has saved me a lot of time. Also, the same tutorial works for the iPhone too. Once you have Charles set up to work with your device there are two main benefits that will help you debug your work.
- Viewing HTTP traffic to your iPad site - Great for ensuring resources aren't returning 404, checking that everything is being cached properly, and no extraneous calls are being made etc...
- Mapping production files to your local environment - This is great because you can be viewing your production site, but have Charles point to a JS/CSS file on your desktop so you can test changes on the fly.