iphone chrome 遠程偵錯 cocos h5
要在 windows 下偵錯 cocos h5 跟 mac 不一樣
首先安裝weinre
$ npm install -g weinre
啟動weinre
$ weinre --boundHost 192.168.3.162 --httpPort 9091
查看remote debug
http://192.168.3.162:9091/client/
在打包的 index.html 新增以下
手機端瀏覽 http://192.168.3.162/alnair/build/web-mobile/ 後可以看到 weinre 有連接近來
後台也可以看到對應的連接跟log