Mobile-pick Debugging Tool weinre installation Tutorial (java Edition)

Source: Internet
Author: User
<span id="Label3"></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;">First of All: This installation tutorial is based on Java JDK installation, after testing can be normal use, based on the installation of nodejs, small meow play anything for several days also did not succeed, if which child shoes based on Nodejs installation success, please contact small meow, Small meow here first thank you!</span></p></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;">well, don't talk nonsense, the main dish came up ...</span></p></p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;"><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;">A. Configuring environment Variables for Java</span></span><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;">1. Download the Java JDK and install it, share the 64-bit jdk, click Install directly</span></p></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;">After the successful installation, the test is really successful installation, click "start"----"run"----input CMD, Enter "java-version" at the command prompt and press ENTER to appear, that is, the installation is Successful.</span></p></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;"></span></p></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;">2. Start configuring Environment variables, Right-click on "my computer"---"properties"-----"advanced"---"environment variables", Select "new system variable"--popup "new System variable" Dialog box, enter "java_home" in "variable name" text box, "variable value" text box enter the installation path for the JDK (my default: C:\Program Files (x86) \java\jdk1.8.0_45), Click the OK button</span></p></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;">3. View the path variable in the system variables options area, and if it does not exist, create a new variable path, otherwise select the variable, click the edit button, and add "%java_home%\bin;%java_home%\jre\bin;" at the beginning of the variable value text box. Click the OK button (note later;)</span></p></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;">4. View the CLASSPATH variable in the system variables options area, and if it does not exist, create a new variable classpath, otherwise select the variable, click the edit button, and add "at the beginning of the variable value text box."; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar; " Click the OK button (note the Previous.)</span></p></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;">5. Now the test environment variable is configured successfully or Not. Enter "javac" in the DOS command line window and the output Help information is configured CORRECTLY.</span></p></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;"></span></p></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;">Remember not to miss out on the last ";" Symbol</span></p></p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;"><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;">two. installation, installation and Operation Weinre</span></span><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;">1. Download weinre (shared, sacrificed 1 points, did a lot of work to earn ...) )</span></p></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;">2. Run cmd, Enter the code in the Address bar of the folder where Weinre is located: Java-jar weinre.jar--httpport 8081--boundhost-all-(e.g.)</span></p></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;"></span></p></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;">3. The corresponding information will appear after carriage return (note: do not close cmd during debugging):</span></p></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;"></span></p></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;">4. Open the local browser, (using the WebKit kernel browser (chrome, safari)) to access the http://localhost:8081/, no accident can see the basic information weinre.</span></p></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;"></span></p></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;">5. Mobile device must have WiFi wireless connection, and computer in the same network segment, to ensure that the server installed, I installed the xampp, so put in the Htdocs directory, my files under E:\yii-xampp\htdocs\app, please modify according to your situation</span></p></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;"></span></p></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;">6. Modify the configuration</span></p></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;">C:\Windows\System32\drivers\etc\hosts</span></p></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;"></span></p></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;">E:\yii-xampp\apache\conf\extra\httpd-vhosts.conf</span></p></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;"></span></p></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;">Please make your own changes as appropriate, note that the configuration (lijianwei.app.com) must be placed in front of other configurations</span></p></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;">(you can access the index.html page by entering http://lijianwei.app.com/in the page). add debug Target</span></p></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;">1. Open the local browser, (using webkit kernel browser (SAFARI)) access to http://localhost:8081/, I opened the debug client in the Chrome test page whiteboard, reason unknown, understand the reason for the Welcome QQ me, It is normal for Safari browser to Open. (is It really a bad character?)</span></p></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;"></span></p></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;">2. In the "debug client user interface" is the weinre debug clients, click on the entry can see the target page has not been Tested.</span></p></p><p class="p"><p class="p"><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;">3. In order for the page to be debugged to be weinre detected, you need to add debug Target, which requires adding a JS to the debug page:</span></p></p><p class="p"><p class="p"><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;"><script src= "http://192.168.16.139:8081/target/target-script-min.js#anonymous" ></script></span></p></p><p class="p"><p class="p"><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;">, the red part is your IP address.</span></p></p><p class="p"><p class="p"><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;">You can access this page (HTTP://192.168.16.139/INDEX.HTML) on your mobile device after you add it.</span></p></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;">4. Back to the http://localhost:8081 page, click on the "debug Client user interface:" link into the weinre debug interface, If you successfully added the debug Target, you can see it here.</span></p></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;"></span></p></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;">5. Next we can debug the page in a familiar way, and the debug results will be displayed in real-time on the mobile device, when the first unresponsive, please refresh the phone page, and patiently wait a few seconds (nap)</span></p></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;"></span></p></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;">6. Next is the time to witness the miracle, click on the page</span></p></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;"></span></p></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;">Mobile mouse, found that the corresponding elements on the phone will move, tossing a few days, and finally will move, tears in the collapse, don't bother me ...</span></p></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;">(the Tutorial is written well, is not very simple, Nodejs toss n long, simple mao, please call me red scarf ...) )</span></p></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;"></span></p></p><p><p><span style="font-family: ‘Microsoft YaHei‘; font-size: 15px;">(note: Weinre.bat with Notepad open cmd/c start Java-jar D:\MyFile\weinre\weinre.jar--httpport 8081--boundhost-all-, Red Part please modify for your own Directory)</span></p></p><p><p>Mobile-pick Debugging Tool weinre installation Tutorial (java Edition)</p></p></span>

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.