Remote (mobile) debugging with Weinre

Weinre is a debugger for web pages, like FireBug (for FireFox) and Web Inspector (for WebKit-based browsers), except it’s designed to work remotely, and in particular, to allow you debug web pages on a mobile device such as a phone.  Weinre reuses the user interface code from the Web Inspector project at WebKit. In normal usage, you will be running the client application in a browser on your desktop and running a target web page on your mobile device.

  • Weinre does not make use of any ‘native’ code in the browser, it’s all plain JavaScript therefore it’s functionality is limited. For instance, source level debug of JavaScript is not easy
  • Because weinre doesn’t use ‘native’ code, the debug target code will run on browsers without specialized debug support. For instance, a browser running on your phone
  • Weinre supports ‘remote’ interaction, so you can run the debugger user interface on one machine and can debug a web page running on another machine. For instance, debug a web page displayed on your phone from your laptop
  • Because weinre supports ‘remote’ interaction, multiple debug clients can be debugging the same debug target at the same time
  • The debug client user interface only runs on WebKit-based browsers

Leave a Reply