Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Using the same iPad for testing and casual browsing makes the handling of the Mobile Safari Debug Console a little annoying.

Is there any way to enable it on demand (ie on my test sites), without turning it on for all sites?

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

No.

You can only turn it on or off, there is no way to set it only to certain sites.

Instead of using the (limited) debug console on the iphone, try using Safari on a desktop and set the user agent to iPhone (From in the Developer Menu, to enable the developer menu, open Safari preferences and choose Advanced where there is a checkbox to enable it).

You should then be able to catch almost all of the console logs, as Safari and MobileSafari are naturally similar. Although there are things you will need to use the iPhone for (like viewport issues)

share|improve this answer
    
Any tip on handling media queries? min-device-width and all shouldn't work on the desktop, right? (well, at least not activate the iPhone specific CSS styles) –  Timm Mar 20 '12 at 11:31
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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