6
\$\begingroup\$

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?

\$\endgroup\$
  • \$\begingroup\$ is this a game question? otherwise you could try at stackoverflow.com which is more general programming related. \$\endgroup\$ – BerggreenDK Nov 21 '10 at 2:22
3
\$\begingroup\$

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.)

\$\endgroup\$

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