weex-cli
v0.1.2
Published
weex developer tool for debugging weex app with chrome devtool
Downloads
7
Maintainers
Readme
Weex-cli
Weex CLI native debugger tool (http://alibaba.github.io/weex/doc/tools/devtools.html):
- support android and ios;
- could debug on device and emulator;
- could inspect native Elements( Network, Console, Sources) and debug JS files;
- could breakpoints and debug both JS files and native Java(Android)/C(IOS) files in the same active session.
- support remote debugging, don't need USB connecting to PC.
Install
$ npm install -g weex-cli
usage
weex-cli [options] [we_file|bundles_dir]
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