weex-cli

0.1.2 • Public • Published

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] [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

Package Sidebar

Install

npm i weex-cli

Weekly Downloads

4

Version

0.1.2

License

GPL-3.0

Last publish

Collaborators

  • yuanyan