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.
public ArrayList<MoreItem> getMoreItems(MoreItemList.Builder builder){
builder.addDebug("Debug", icon)
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.
Was this page helpful?