Project Name: Spy-debugger Project Address: Https://github.com/wuchangming/spy-debugger
About Spy-debugger NPM Build Status
1, one-stop page debugging tools, remote debugging any mobile browser page, any mobile phone mobile webview (such as:, Hybirdapp, etc.) Http/https. 2, Spy-debugger internal integration of weinre. 3, support the debugging of HTTPS page.
Installation
Windows under
npm install spy-debugger -g
Mac under
sudo npm install spy-debugger -g
Install the certificate
First step: Generate a Certificate
spy-debugger initCA// 证书生成在用户根目录的node-mitmproxy文件夹下的// 如: /Users/wuchangming/node-mitmproxy
Step Two: Install the certificate
Upload the NODE-MITMPROXY.CA.CRT from the Node-mitmproxy folder to your phone and click Install.
Demo
Easily modify the mini-game page ^.^
Three minutes to get started
The first step: Keep your phone and PC under the same network (for example, connect to a Wi-Fi)
Second Step: command line Input Spy-debugger start, press the command prompt to open the corresponding address in the browser.
The third step: Set the phone's HTTP proxy, the proxy IP address is set to the IP address of the PC, the port is the boot port of Spy-debugger (default port: 9888).
Fourth step: Use your mobile browser to access the page you want to debug.
Custom Options
Port
(Default port: 9888)
Spy-debugger start-p 8888 Whether to let Weinre monitor the IFRAME loaded page
(Default: false)
Spy-debugger start-i true More
The Spy-debugger principle is integrated with the weinre, simplifying the weinre need to add JS code to each debug page. The Spy-debugger principle is to intercept all HTML page requests to inject weinre the JS code required. Make page debugging more convenient.
One-Stop remote page Debug Tool Spy-debugger 2.0, HTTPS enabled