### [小程序调试模式怎么开启](https://www.prosaas.cn/article/16957) **Published:** 2019-11-16T06:29:17 **Author:** 5201314 **Excerpt:** 打开小程序的调试模式可以查看api的wx.setEnableDebug(OBJECT)方法: 打开小程序的调试… ![](https://img.php.cn/upload/article/000/000/029/5dcf972d71cec917.jpg) **打开小程序的调试模式可以查看api的wx.setEnableDebug(OBJECT)方法:** // 打开调试 wx.setEnableDebug({ enableDebug: true}) // 关闭调试 wx.setEnableDebug({ enableDebug: false}) **打开小程序的调试模式可以在app.json 的 debug配置:** { "pages": \[ "pages/index/index", "pages/logs/index" \], "window": { "navigationBarTitleText": "Demo" }, "tabBar": { "list": \[{ "pagePath": "pages/index/index", "text": "首页" }, { "pagePath": "pages/logs/logs", "text": "日志" }\] }, "networkTimeout": { "request": 10000, "downloadFile": 10000 }, "debug": true} **完成上面的配置,使用开发者的账号还是会有这个调试存在的,只有上线了扫描新的就会没有了** ![](https://img.php.cn/upload/image/395/157/738/1573885386357200.jpg) **而体验的账号就不会再有这个调试的存在了** **![](https://img.php.cn/upload/image/456/582/993/1573885405409880.png)** 以上就是小程序调试模式怎么开启的详细内容,更多请关注知企PROSAAS其它相关文章! **Categories:** 后端开发 ---