Target browsers: iOS, Android, Blackberry, webOS
In the previous recipe, we saw how you can debug Opera mobile pages remotely. In this recipe, we will see how we can debug remotely in other mobile devices. Weinre is a Web Inspector Remote.
The supported OS include:
Android 2.2 Browser application
Android 2.2 w/PhoneGap 0.9.2iOS 4.2.x
Mobile Safari application
BlackBerry v6.x simulator
webOS 2.x (unspecified version)
First, we must download weinre from the official website; there are two versions available, one for PC and one for Mac:
1. First, get your IP address by running
ipconfig
in your console.2. Create an HTML document and name it
ch07r01.html
. Replace192.168.1.11
with your own IP address:<!doctype html> <html> <head> <title>Mobile Cookbook</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0">...