Remote debugging is the process of debugging a program running on a system different from than the debugger. To start remote debugging, the debugger connects to a remote system over a network. Once connected, the debugger can control the execution of the program on the remote system and retrieve information about its states.
Remote debugging has come a long way over the past few years; the most common and easy-to-use debuggers include iWebInspector, weinre, and Adobe Edge Inspect.
iWebInspector is a free tool to debug, profile, and inspect web applications running on the iOS Simulator. You can check resources, see and change HTML tags and CSS rules, use breakpoints on JavaScript code, create charts, and more, just as if you were on Safari for Desktop, Chrome, or Firebug. For the latest available build of iWebInspector go to http://www.iwebinspector.com/.