onLoad添加以下代码,然后打开真机调试,预览之后开启

wx.setEnableDebug({
    enableDebug: true
});

参数设为false,再次真机预览,可关闭