Whistle is a node.js-based cross-platform debugging tool that makes it easy to debug on PC, mobile, MAC or Windows. Is a access to the development of domain name, can proxy access to local resources and capture the visual tool

The following is how to install and use Whistle tool:

Whistle supports Node versions v0.10.0 and above. For better performance, it is recommended to install the latest version of Node. NPM install -g whistle NPM install -g whistle NPM install -g whistle NPM install -g whistle Can use taobao mirror installation) NPM install CNPM - g - registry=https://registry.npm.taobao.org using the command whistle help check whether the installation is successful The serviceworker.ts file in the project configures the whistle agent informationCopy the code

Whistle related commands

Whistle: W2 Start Whsitle: W2 restart Stop Whistle: W2 Stop Debug mode Start Whistle (mainly used to view whistle exceptions and plug-in development): W2 runCopy the code

Configure proxy (browser proxy: install browser proxy plug-in, recommended to install SwitchyOmega) :

Browser configuration SwitchyOmega expansion program steps: https://www.cnblogs.com/nicole-zhang/p/11955881.htmlCopy the code

Install the root certificate: Go to the following link to download the certificate:

Click on the first image for link configuration:

The configured domain name is the domain name to be proxy. Port Number Indicates the port number of the project running locally

Configure whistle in your browser:

Then access to the domain name to be proxied can be forwarded to the local