Debugging HTML, CSS, and JavaScript can be painful in mobile web applications, particularly if we are using a touch device. Remote debugging provides a way to test your enterprise web applications in mobile devices using your desktop or laptop.
Chrome supports remote debugging via USB for Android devices: https://developers.google.com/chrome/mobile/docs/debugging.
Firefox 15 introduces remote debugging for Android too: https://hacks.mozilla.org/2012/08/remote-debugging-on-firefox-for-android/
Previous to Version 6, iOS devices had a simple interface inside the device for debugging.
Safari 6.0.1 (Mac only) and iOS 6 support remote debugging. To start remote debugging in any iOS 6:
In the device (iPhone, iPad, or iPod) go to Settings | Safari | Advanced and enable the Web Inspector option.
Open Safari in a Mac computer.
Open the web application to debug using Safari in your iOS device.
Connect the device to your Mac computer using a USB cable.
If you don't have the Develop menu...