1. Why use WeChat developer tools?
There are many ways to test applets. You can directly use the real test machine to scan the code to test the trial version, so why choose to use tools?
Advantages of using WeChat developer tools:
1. Compared with real-device testing, using tools can save resources. Big companies can’t feel it, and small companies really don’t have so many testing machines
. The logic may be complicated, and it is not easy to create conditions. Using tools can directly jump to the page for testing.
3. It is very convenient to capture packets and view the interface. 4. Other
advantages that I don’t have a deep understanding of.
2. Install WeChat developer tools
1. Download WeChat developer tools: https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html
2. Installation, nothing special, next step next step
3. Using WeChat Developer Tools
1. Log in to the WeChat account that has opened the developer permission, import the installation package of the applet, select the path of the applet package, and the correct appid:
The above picture imports the package: this package can be found and opened by the developer, and the provided package can be packaged, or you can type it yourself. The packaging method is written in another blog post.
2. Happy to explore the developer tool test applet
Settings:
4. A little introduction to the internal use of WeChat applets
Capture packets in the applet:
The model switching test is compatible with:
Three compilation modes:
Page test, you can jump directly here:
Link to add parameters to jump directly:
Scan the QR code to jump:
Real machine debugging:
1. It is necessary to log in to an account that has opened developer permissions corresponding to the real machine
2. Real machine debugging on PC:
3. Real machine debugging on the mobile phone: