You can debug with chrom dev tool:debug
1. Use console to debug service worker:3d
Swith to sw.js context then you can access 'self' objectcode
2. Set breakpoint:blog
You can see all the event object.it
3. You can see the active service worker:console
4. Once you change the code, you can see the waiting servie worker:event
4. After you close and reopen the page, the waiting service work become the active one.object