I have an iPad running some Javascript in a webview, but sometimes it just refuses to work. Does anyone have a way to debug this kind of issue?
4 Answers
You can use bookmarklets to run things like firebug lite: Check the following article for links to how to make bookmarklets installable on mobile safari as well as links to firebug lite. http://community.godaddy.com/library/setting-up-a-debugging-environment-on-the-ipad/

- 462
- 4
- 11
Recently with the new iOS 6 you can turn on remote debugging and analyze your project with Webkit Inspector on Safari (but only with a Mac, because you must have safari 6.x).
This method would not work on the first generation of iPad too, because they're not upgradeable to iOS 6.
The question is one year old and obviously it wasn't available at the moment. I'm posting it so that someone who come up here could know it.
Info: http://www.mobilexweb.com/blog/iphone-5-ios-6-html5-developers

- 5,845
- 6
- 36
- 58
Simply enable js console

- 4,237
- 3
- 25
- 31
-
12This is the most useless debug console you could find anywhere. If your error is an "undefined" error, you will get no file or line# information at all. You will just know there there is an "undefined error" SOMEWHERE in your application. – Josh Mouch Jun 26 '12 at 15:28
-
@Josh: Yes I know, but sometimes it easiest way to debug – Andrei Jun 26 '12 at 18:02
-
But it's these annoying "undefined" errors where you need a good console the most... so this is not a really good answer. – OlafW Oct 01 '12 at 14:27
-
1No longer available in iOS 7 – Zymotik Jan 23 '14 at 16:13