We found a mobile web remote debugging tool weinre. Haha !, Debugging tool weinre

Source: Internet
Author: User

We found a mobile web remote debugging tool weinre. Haha !, Debugging tool weinre

Previously, chrome was used for remote debugging. Although the results were good, it was inconvenient to debug cordova.

We found this: weinre when looking for a tool on git, which is very simple to use.

Attached git address: https://github.com/apache/cordova-weinre

Start directly:

Step 1: Install

Command: npm install-g weinre

 

Step 2: Run

Command: weinre-boundHost 192.168.1.108-httpPort 8080

My computer's LAN ip address is 192.168.1.108

 

Parameter description:

HttpPort Debug server port
BoundHost IP address or domain name of the server

 

 

 

Step 3: Use

The address entered in Google Chrome: http: // 192.168.1.108: 8080

As follows:

 

 

 

Add js references to the debugging server:

<Script src = "http: // 192.168.1.108: 8080/target/target-script-min.js # anonymous"> </script>

 

 

Access the page to be debugged on your mobile phone. The address of the debug page is http: // 192.168.1.108: 37365/

 

 

So how to debug it?

Open Google's browser and enter:

Http: // 192.168.1.108: 8080/client/# anonymous

 

The following page is displayed:

 

Is it a very familiar interface.

Reference blog: http://www.cnblogs.com/tugenhua0707/p/4681482.html

---------------------------- Broken line ----------------------------------------------------------------

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.