Chrome Extension Extension Debugging — Developer Guide

3 min read

Debugging Chrome Extensions

Introduction

1. Debugging the Service Worker (Background) {#1-debugging-the-service-worker-background}

2. Debugging Content Scripts {#2-debugging-content-scripts}

3. Debugging Popup and Options Pages {#3-debugging-popup-and-options-pages}

4. Debugging Messaging {#4-debugging-messaging}

5. Debugging Storage {#5-debugging-storage}

6. Debugging Permissions {#6-debugging-permissions}

7. Chrome Extension Error Logs {#7-chrome-extension-error-logs}

8. Useful DevTools Tricks {#8-useful-devtools-tricks}

Debugging Workflow Summary

  1. Check chrome://extensions errors first
  2. Inspect the relevant context (SW, content, popup)
  3. Add targeted console.log at messaging boundaries
  4. Use storage watch to track state changes
  5. Test permission grants with getGrantedPermissions()

Part of the Chrome Extension Guide by theluckystrike. Built at zovo.one.