[PWA] 3. Devtool

You can debug with chrom dev tool:

1. Use console to debug service worker:

[PWA] 3. Devtool

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

2. Set breakpoint:

[PWA] 3. Devtool

You can see all the event object.

3. You can see the active service worker:

[PWA] 3. Devtool

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

[PWA] 3. Devtool

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

[PWA] 3. Devtool

上一篇:lua绑定c++的时候常见得错误


下一篇:jquery easy ui 1.3.4 按钮(button)(6)