首页 > 其他 > 详细

[PWA] 3. Devtool

时间:2016-05-15 21:34:15      阅读:311      评论:0      收藏:0      [点我收藏+]

You can debug with chrom dev tool:

 

1. Use console to debug service worker:

技术分享

Swith to sw.js context then you can access ‘self‘ object

 

2. Set breakpoint:

技术分享

You can see all the event object.

 

3. You can see the active service worker:

技术分享

 

4. Once you change the code, you can see the waiting servie worker:

技术分享

 

4. After you close and reopen the page, the waiting service work become the active one.

技术分享

[PWA] 3. Devtool

原文:http://www.cnblogs.com/Answer1215/p/5496129.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!