Instructions on building a local debugging environment for Wechat
As we all know, when developing Wechat, you must enter URL, and the URL must be a public network domain name.
This article will take you to use tools to build Wechat local development environment, the principle is to map the public network domain name to the local port through the tool.
Tool name: ngrok, I am using the windows version here. Click here to download
Do the following:
Extract the downloaded tools
Enter the tool catalog through cmd
Enter the following command: ngrok-config ngrok.cfg-subdomain myapp 80
Parameter description: myapp is a custom domain name. For example, wxdebug,80 is the local port to be mapped to. Feel free to enter the port number you need, such as tomcat default port 8080.
Finally, if you use http://wxdebug.ngrok.natapp.cn access, you will automatically enter the local IDE for debugging.
The screenshot below indicates success