billfeller.github.io icon indicating copy to clipboard operation
billfeller.github.io copied to clipboard

微信小程序调试之第三方应用调试技巧

Open billfeller opened this issue 8 years ago • 0 comments

原理

微信小程序本质实现还是基于webview嵌套网页来实现,不过微信针对Webview体验性能问题给出了自己的一套解决方案,在这个基础上实现虚拟DOM(类似React),资源离线管理,WeixinAPI集成。所以理论上,微信内置浏览器访问网页的那套调试方法仍然适用于微信小程序。

方法

  1. Android系统开启USB调试;见 Get Started with Remote Debugging Android Devices
  2. Windows安装TBS Studio,开启微信调试功能;见 TBS开发调试利器——TBS Studio
  3. 完成以上两步后,就可以使用Chrome对微信小程序进行调试,也可以很容易查看第三方应用的前端实现方法。

推荐阅读

  1. Get Started with Remote Debugging Android Devices
  2. TBS开发调试利器——TBS Studio
  3. 腾讯浏览服务
  4. TBS 2.3 版本震撼上线,已经全量发布

billfeller avatar Jan 13 '17 12:01 billfeller