DEV Community

Leo Chen
Leo Chen

Posted on

1

Debugging Google Chrome Extensions Locally: A Quick & Easy Guide

Google Chrome is one of the most popular browsers in the world. It offers powerful extensions that let developers enhance the browsing experience. From game hacks to productivity tools — if you can dream it, you can build it. And the best part? It’s surprisingly easy to get started.

In this tutorial, I’ll walk you through the simple steps to debug your own Chrome extension.

Before we dive in, check out my project, Face Blindness Saver — a Chrome extension that identifies celebrities in YouTube videos. You can use it to follow along with this guide today!

Step 1: Open the Chrome Extension Management Page

  1. Open Google Chrome.
  2. In the address bar, type: chrome://extensions and hit Enter.
  3. Toggle on Developer mode in the top-right corner.

Image description

Step 2: Load Your Extension

  1. Click the Load unpacked button.
  2. Navigate to your extension’s folder and select it.
  3. Chrome will instantly load the extension, and you’ll see it appear on the page.

Image description

Step 3: Run & Debug

Congratulations! Your extension should now appear in the list of installed extensions. The extension will automatically start running. Now you can debug your extension just like any webpage — set breakpoints, log messages, and watch the magic happen.

Image description

And that's it! You're now ready to test and debug your Chrome extension!

AWS Q Developer image

Your AI Code Assistant

Implement features, document your code, or refactor your projects.
Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more