The Mini Program IDE supports real-device preview and debugging. Use Preview to check how your current code renders on a device, or use Debug to inspect and troubleshoot the Mini Program on your mobile client.
Preview or debug on a real device
-
Click Preview or Debug in the upper-right corner of the IDE.
The IDE packages the current code into a .zip file and uploads it to MDS.
-
MDS automatically creates a release task, then generates a QR code and returns it to the IDE.
NoteIf the QR code fails to generate, your whitelist is not set. Fix this by setting a whitelist.
-
Scan the QR code displayed in the IDE using your mobile client.
MDS releases the Mini Program package to your device.
The QR code expires after 5 minutes. A refresh button appears when it times out.
After your device receives the Mini Program package, start previewing or debugging.
Platform-specific setup
For platform-specific setup for Android and iOS, see: