O'Reilly logo

Beginning iOS Application Development with HTML and JavaScript® by Richard Wagner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 18

Debug and Deploy

WHAT YOU WILL LEARN IN THIS CHAPTER:

  • Using an IOS Simulator on your Mac computer
  • Debugging with Safari on Mac or Windows
  • Debugging options on your IOS device

Get in, get out. That’s the attitude that most developers have in testing and debugging their applications. Few developers look forward to these tasks during the development cycle, and so they want to efficiently get into the code, figure out what’s working and what’s not, fix any problems, and then move on.

Given the heterogeneous nature of web apps, debugging has always been challenging, particularly when trying to work with client-side JavaScript. To address this need, fairly sophisticated debugging tools have emerged over the past few years among the developer community, most notably Firebug and other add-ons to Firefox. However, the problem is that most of these testing tools that web developers have come to rely on for desktop browsers are not ideal for testing IOS web apps.

Many IOS web app developers, unsure of where else to turn, might be tempted to resort to alert() debugging — you know, adding alert() throughout the body of the script code to determine programmatic flow and variable values. However, not only is this type of debugging painful, but it can also throw off the timing of your script, making it difficult or impossible to simulate real-world results. Therefore, in this chapter, I walk you through the various debugging options you have that either work on your desktop or directly ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required