17

Is there any way to debug a JavaScript page runing on iPad?

pimvdb
  • 151,816
  • 78
  • 307
  • 352
xus
  • 2,587
  • 8
  • 31
  • 44
  • 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 Answers4

15

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
Community
  • 1
  • 1
Rene Pot
  • 24,681
  • 7
  • 68
  • 92
2

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.

fedmich
  • 5,343
  • 3
  • 37
  • 52
1

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.

Abbas Mousavi
  • 486
  • 3
  • 17
0

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

Sven Malvik
  • 765
  • 2
  • 8
  • 18