返回介绍

San DevTools

发布于 2021-03-24 23:46:44 字数 2987 浏览 942 评论 0 收藏 0

中文文档:https://www.wenjiangs.com/article/san-devtools-use.html

It is exists both as a browser extension and as a common line tool(works with other environments including Safari, IE, San Native and Electron.)

Features

  • Provide local server command, support remote debugging.
  • Built in Chrome Devtools for remote debug mobile page.
  • Provide Chrome Extension.
  • Support San Native debugging (waiting for release).

Installation

standalone

The standalone version exists as a command line tool, and install from NPM or Yarn.

npm i -g san-devtools 
# OR
yarn global add san-devtools

chrome extension

Get the Chrome Extension

OR

Navigate to chrome://extensions in Chrome/Chromium to load the unpacked extension from dist directory.

Quick Start

standalone

First: Start debugging server, and will auto open the remote inspector.

sand # short for san-devtools
# OR
san-devtools

Second: Add ws-backend.js to the top of the debugging page(before san.js).

Third: Open the debugging page, and inspector page will auto connected.

chrome extension

Open the debugging page and san-devtools plugin will show the San version, then open the chrome devtool and will see the San tab.

sand options

  • --open, -o: Open browser when server start(default: true)
  • --port, -p: Port to use (default: 8899)
  • --address, -a: Address to use
  • --version, -v: Show version number
  • --help, -h: Show help

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文