New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

weex-devtool

Package Overview
Dependencies
Maintainers
1
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

weex-devtool

weex developer tool for debugging weex app with chrome devtool

  • 0.2.6
  • npm
  • Socket score

Version published
Weekly downloads
248
increased by1277.78%
Maintainers
1
Weekly downloads
 
Created
Source

Weex-Devtool

Weex CLI native debugger tool (https://github.com/alibaba/weex/blob/dev/doc/tools/devtools.md):

  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-devtool

usage

weex-devtool [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
-e, --entry [entry]  set the entry bundlejs path when you specific the bundle server root path
-m, --mode [mode]    set build mode [transformer|loader]
start debugger
$weex-devtool

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.

start debugger with a we file
$weex-devtool your_weex.we

this command will compile your_weex.we to your_weex.js and start the debug server as upon command. your_weex.js will deploy on the server and displayed in DeviceList page as another qrcode contain the url of your_weex.js

start debugger with a directory of we files
$weex-devtool your/we/path  -e index.we

this command will build every file in your/we/path and deploy them on the bundle server. your directory will mapping to http://localhost:port/weex/ use -e to set the entry of these bundles. and the url of "index.we" will display on device list page as another qrcode

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

Keywords

FAQs

Package last updated on 07 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc