Debug mobileweb in device

Posted: September 15, 2015 in HTML

1) Install nodeJs using msi installer: https://nodejs.org/en/
2) Go to command line and check if its installed or not using: npm -v
3) Install weinre using below command: npm install –g weinre
4) Run ipconfig command and note your IPv4 address.
5) Run the debugging server using your dev machine: weinre –boundHost 10.12.0.1
6) Once you run above command it will give you weinre URL like http://10.12.0.1:8080, run that url in browser
7) Under “Target Script” you will find <script>.., copy that line in your mobileweb code.
8) Under “Access Points”, click on “debug client user interface” i.e. http://10.12.0.1:8080/client/#anonymous
9) Now, once you run your mobileweb

Reference: http://people.apache.org/~pmuellr/weinre-docs/latest/Installing.html

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s