HomeDocs
Skip to main content

Debugging an H5 Shell MiniApp

Currently, the debugging method for MiniShell H5 only supports USB debugging

Open the debugging interface of an H5 Shell MiniApp

  1. Go to the startup page. Click on the "Debug" button in the MiniShell panel on the sidebar. The MiniShell debugging interface will be opened. Startup Page
  2. The debugging interface of an H5 Shell MiniApp: Debug Page

Debug an H5 Shell MiniApp

  1. Enter the URL of the H5 webpage you want to debug in the URL input box;
  2. Clicking on the "USB Debug" button will open the URL entered in Step 1 on the connected Android phone;
  3. The debugging tool will establish a connection with the H5 opened on the Android phone and display corresponding information on various panels;
  4. If you are debugging a local service and have configured Hot Reload, any modifications made to the local project will trigger automatic refresh of the H5 without the need to click the "USB Debug" button again. Debug Page

Notes:

When using UI interaction APIs such as dlt.showToast, dlt.showLoading, dlt.showModal, dlt.showActionSheet, etc., only the correct UI effects will be displayed on the Android phone, not on the Screencast panel of the debugging tool on the left-hand side.

Privacy agreementDeveloper agreementcontact us: developer_service.mi@transsion.com © 2024 MiniApp. All Rights Reserved.