Otaqui.com Blog

Debugging Javascript on the iPhone or iPad

I made a webapp that was causing some issues on iOS, and had no clue how to debug javascript on the iPhone or iPad. I don’t own either device but I do have a macbook pro and XCode, and the iOS simulator.

It turns out that, with a little magic provided by Juan Pablo Buritica, you can attach a remote debugging session to mobile safari running in the simulator .

I’ve found this a little flaky in heavy use, but infinitely better than nothing, which is what Apple provides web developers who don’t have access to XCode.