Jason
Jason

Reputation: 15378

How to debug Javascript running in a webview on an iPad?

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?

Upvotes: 23

Views: 25789

Answers (4)

franzlorenzon
franzlorenzon

Reputation: 5943

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

Upvotes: 9

Sorskoot
Sorskoot

Reputation: 10310

Another tool you could try is adobe shadow.

Upvotes: 3

Kelly Anderson
Kelly Anderson

Reputation: 492

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/

Upvotes: 12

Andrei
Andrei

Reputation: 4237

Simply enable js console

Upvotes: 1

Related Questions