安装weinre在PC端调试移动端

1.使用node安装weinre。

2.启动weinre,

weinre --httpPort 8081  --boundHost -all-

3.在浏览器打开

   http://localhost:8081

显示页面:把Target Script的JS放到页面上面。

 

 

4.在需要调试的页面的JS中,写console.log("you need to see the message");

5.打开页面,

   http://localhost:8081/client/#anonymous,

运行你的程序,在页面的控制台就可以看到你需要的信息了。

原文地址:https://www.cnblogs.com/liuyinlei/p/5103149.html