Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging web app in iPad Simulator

I am developing a web app for iPad and testing it on Safari on Mac and Safari on iPad Simulator. Now there are some issues with CSS in iPad Simulator which work quite well in Safari on Mac. Now my question is, Is there a powerful debugging tool for Safari in iPad Simulator?

like image 530
awsome Avatar asked Jan 12 '12 17:01

awsome


Video Answer


2 Answers

When running safari in an XCode device simulator, the desktop Safari (v6) Develop menu shows those devices. From there, you can fire up the developer tools (DOM browser etc.) for the mobile browser. This helped me debug an mobile safari css issue without hardware.

iPad Simulator menu option

like image 162
t1m0 Avatar answered Sep 19 '22 12:09

t1m0


Note: As of iOS6 this is not the correct way of doing remote debugging, leaving this answer for historical reasons but you should look into remote inspection with Safari, here is a good article: http://jeffreysambells.com/2012/09/22/ios-safari-web-inspector

Have a look at this, (a bash script I wrote) https://gist.github.com/2241976. It will allow you to open the iPad simulator and run Webkit's remote inspector, which will look just like this.

iOS remote Inspector

like image 40
Juan Pablo Buritica Avatar answered Sep 20 '22 12:09

Juan Pablo Buritica