Is there any way to debug a JavaScript page runing on iPad?
-
For an iPhone, click the settings icon on the home screen and edit safari settings. Developer mode. Can't confirm it's the same for iPad. Probably is though. – user890127 Oct 20 '11 at 10:17
-
It's the same on iPad (at least, on the iOS simulator under Xcode). But if there's an error it can help you, if there's no error but still some kind of layout issue *because it's an iPad* then you are still stuck ... – frumbert Mar 22 '12 at 00:09
4 Answers
Go to this location, and enable debug console.
iOS6:
Debug Console is gone. Use an alternative to get it to work. Such as Firebug Lite. Look at the related question here: iOS6 - removed console log for IPad - how to use web inspector on windows?
iOS5:
Settings -> Safari -> Advanced -> Debug Console
Older:
Settings -> Safari -> Developer -> Debug Console
If you want to get up and running fast. Just go sign up and add the tracking html codes from http://trackjs.com The javascript errors shows up immediately then when I used on my iPad2.
And then you can just remove the tracking code later too if you decide not to track anymore errors.

- 5,343
- 3
- 37
- 52
You can also use this iPad app http://itunes.apple.com/us/app/idebug/id525956537?mt=8&ign-mpt=uo%3D2
this app loads firebug lite on your web page so you can debug javascript and css.

- 486
- 3
- 17
Maybe firebug lite is something for you http://getfirebug.com/firebuglite It is a bookmarklet.

- 765
- 2
- 8
- 18
-
1on iOS? Nah, it doesn't work there. You can't bookmark a javascript: link; there's no drag and drop support so you can't drag the link. – frumbert Mar 22 '12 at 00:07
-
5you can totally bookmark a javascript link on iOS. Lots of scriptlets out there. – Mark Reed Jun 10 '12 at 14:08
-