All Products
Search
Document Center

Mobile Platform as a Service:Real-device preview and debugging

Last Updated:Jun 10, 2026

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

  1. 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.

      Note

      If the QR code fails to generate, your whitelist is not set. Fix this by setting a whitelist.

  2. 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.

  3. After your device receives the Mini Program package, start previewing or debugging.

Platform-specific setup

For platform-specific setup for Android and iOS, see: