Finally it’s here iOS6 provides remote debugging for web applications out of the box. No more console.log, no more weinre just the Safari on the mobile device and on your Mac.
Simple activate this feature on your iOS6 device under Settings –> Safari –> Advanced
Then connect it to your computer with a cable and start both Safaris. In your computer’s Safari you can find your iOS device under the Develop menu. There you can choose between all open tabs.