安装weinre在PC端调试移动端

1.使用node安装weinre。

2.启动weinre,

 1 weinre 

3.在浏览器打开

   http://localhost:8080

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

 

 

安装weinre在PC端调试移动端_第1张图片

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

5.打开页面,

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

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

你可能感兴趣的:(安装weinre在PC端调试移动端)