0.1.2 • Published 9 years ago

weex-cli v0.1.2

Weekly downloads
1
License
GPL-3.0
Repository
-
Last release
9 years ago

Weex-cli

Weex CLI native debugger tool (http://alibaba.github.io/weex/doc/tools/devtools.html): 1. support android and ios; 2. could debug on device and emulator; 3. could inspect native Elements( Network, Console, Sources) and debug JS files; 4. could breakpoints and debug both JS files and native Java(Android)/C(IOS) files in the same active session. 5. support remote debugging, don't need USB connecting to PC.

Install

$ npm install -g weex-cli

usage

weex-cli options

Options:

-h, --help           output usage information
-V, --verbose        display logs of debugger server
-v, --version        display version
-p, --port [port]    set debugger server port

start debugger

$ weex-cli <entryBundleUrl>

this command will start debug server and launch a chrome opening DeviceList page. this page will display a qrcode ,you can use Playground App scan it for starting debug.

Debug

Android: pls refer to https://github.com/alibaba/weex/blob/dev/android/inspector/README.md

IOS: pls refer to https://github.com/alibaba/weex/blob/dev/ios/WXDevtool/README.md