The simplest way to debug web applications on iOS is to enable remote debugging with Safari on your Mac. If you don't have a Mac, skip ahead to the Debugging on Anything section.
You need a Mac, iOS version 6 or later and Safari version 6.0 or later to enable this feature.
- First, on your iOS device, head over to Settings | Safari | Advanced and toggle Web Inspector on. These actions are depicted in the following screenshot:
- Next, you'll need to add the Develop menu to Safari on your computer, so open Safari and open the preferences (Safari | Preferences), and in the Advanced tab, check the Show Develop menu in the menu bar checkbox, ...