使用nodejs安装weinre远程调试移动端页面_Use nodejs install weinre debug mobile page

下载并安装nodejs环境,使用npm命令npm -g install weinre 直接安装weinre.其中npm安装的位置在C:\Users\RainZhai\AppData\Roaming\npm\node_modules.
安装完成后,使用weinre命令开启本地服务:

$ weinre –help
usage: weinre [options]
version: 2.0.0-pre-HA5N9T49

options:
–httpPort port to run the http server on default: 8080
–boundHost ip address to bind the server to default: localhost
–verbose print more diagnostics default: false
–debug print even more diagnostics default: false
–readTimeout seconds to wait for a client message default: 5
–deathTimeout seconds to wait to kill client default: 3*readTimeout

–boundHost can be an ip address, hostname, or -all-, where -all-
means binding to all ip address on the current machine’

for more info see: http://people.apache.org/~pmuellr/weinre/
局域网这里的ip写成自己的ip:weinre –boundHost 192.168.1.102
服务开启后可以通过本地访问http://192.168.1.102:8080/

[caption id=”attachment_328” align=”alignnone” width=”714”]weinre调试工具 weinre调试工具[/caption]

[caption id=”attachment_329” align=”alignnone” width=”557”]weinre 调试页面 weinre 调试页面[/caption]

http://people.apache.org/~pmuellr/weinre/docs/latest/Home.html