First, install the node environment
Second, installation weinre
Third, start weinre service: weinre--boundhost local IP address
Weinre The default port number is 8080, of course we can also set a port number: weinre--httpport 8081--boundhost native IP, open browser access after startup
Iv. Add script
When we see the page display, we want to add it in the interface we need to debug:
<script src= "http://192.168.66.225:8080/target/target-script-min.js#anonymous" ></script>
Five, mobile phone USB connection computer, start the project service, and access the page address in the phone
Appears above the green represents the successful connection, click on the top of the second tab--elements, go to the Debug page
At this time, change the structure of the page or adjust the style, the phone will be displayed, very convenient debugging problems
Mobile Debugging Tools Weinre