Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I've built a web app that makes heavy use of JavaScript and HTML5 canvas. It's easy to debug in Chrome, but on a mobile device the developer tools are much less robust. Is there a tool or technique that will enable me to easily debug and profile my application on an iPod in Mobile Safari?

share|improve this question
    
is this a game question? otherwise you could try at stackoverflow.com which is more general programming related. –  BerggreenDK Nov 21 '10 at 2:22

2 Answers 2

up vote 3 down vote accepted

By using the iOS simulator that comes with the (free) iOS development kit you can achieve a lot; but profiling is generally tricky. Run it with the debug console; but do the major testing in Safari. (Not Mobile Safari, but the desktop version.) This should help you root out most actual errors.

As for performance, there's not a lot more you can do than to simply test it on a number of representative devices and see if it's fast enough. (2nd gen. iPod Touch, iPhone 3G, iPhone 3GS etc, with both iOS 3 and iOS 4 (latest versions) should be a good starting point.)

share|improve this answer

I have been working on a similar problem, and am happy to share my experiment, source code, and results with all.

https://github.com/GameMaker/PhoneGap-Performance-Test--PGPT-

It's specific to testing javascript / HTML5 in PhoneGap - but you can also run the source in any browser of your choice. It's still in-progress, but if folks have constructive critique, I'm all ears! :)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.