From the course: Learning JavaScript Debugging

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Debugging on iOS using Simulator

Debugging on iOS using Simulator - JavaScript Tutorial

From the course: Learning JavaScript Debugging

Start my 1-month free trial

Debugging on iOS using Simulator

- [Instructor] In this video we're going to look at how to debug JavaScript running on an iOS device using Safari's developer tools and the simulator built into x code. Most of what we see here applies when debugging on actual devices plugged in over USB as well. Here's my example loaded in Safari. All these items are draggable as you can see. And I want to respond to swipes as well, removing items when I swipe left. This is built using jQuery UI. And we're gonna look at it on an iOS device through a simulator. I need to do a little bit of setup for this all to work. First I'm gonna turn on the developer tools in Safari. To do that I'm going to open the preferences and then here under advanced, show develop menu in the menu bar. Once that's available I've all kinds of goodies including the Web Inspector which is right here. Once again the key command to open this is command option i, the same way we see with pretty much all the other developer tools. All right. This is good, now let's…

Contents