tencent cloud

Feedback

Mini Program Debugging

Last updated: 2024-03-08 14:28:06
To facilitate the debugging and log inspection of the mini program, it is necessary for the client to activate the mini program debugging entry. See how to do this in Mini Program Host Customization - Implementation of "Custom Capsule" getMoreItems.
/**
* Return the buttons for the capsule's extended panel. The ID of the extended button must be set within the range of [100, 200], otherwise, the addition will be invalid.
* Note: This method is called in the mini program process.
* @param builder
* @return
*/
public ArrayList<MoreItem> getMoreItems(MoreItemList.Builder builder){
builder.addDebug("Debug", icon)//Set the debug button on the control panel.
return builder.build();
}
Upon setting, a debug button will appear on the mini program control panel. Clicking it will activate the debug mode, and restarting the mini program will enter the debug mode.



Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support