Get your API key

Lesson 4 of 5

Test it and find bugs fast

Know where each error shows up (popup, page, service worker, Errors button), test like a picky user, turn an exact error into a bug report, and keep Git save points.

8 min Log in to open
One step at a time, like flipping pages.

By the end of this lesson you will know where every kind of extension error shows up, test Job Hunt Helper like a picky user, and keep Git save points so no fix can break what already works.

You need: Job Hunt Helper with Save and Highlight from lesson 3, Git installed · Time: 8 minutes

  1. An extension has several parts, and each part writes its errors in a different place. The Console is the panel in Chrome's DevTools (the developer tools window) where code prints messages and errors.

    Four boxes. 1 Popup: open the popup, right-click it, Inspect, Console tab. 2 Content script: on the job page press F12, Console, dropdown top, pick your extension. 3 Service worker: chrome://extensions, Inspect views, blue link, only if you have one. 4 Errors button: chrome://extensions, your extension's card, Errors, read and copy.
    Four places to look. Pick the one that matches the part that broke.
    1. Popup: open the popup, right-click inside it, choose Inspect, then open the Console tab.
    2. Content script (our highlight.js): on the job page press F12 (or Ctrl + Shift + I, Cmd + Option + I on Mac), open Console, click the dropdown that says top and pick Job Hunt Helper. Content script errors do not appear under the Errors button, so this is the place.
    3. Service worker: on chrome://extensions, click the blue link next to Inspect views. Job Hunt Helper has no service worker, so you will not see one; bigger extensions do.
    4. Errors button: on chrome://extensions, an Errors button appears on the extension's card when something failed. Click it to read the details; Clear all empties the list after you fix the bug.
    Why?

    Looking in the wrong place is why many beginners say "there is no error". The error is usually there, in the console of the part that broke.

Log in free to read the rest of this lesson

Every lesson is free. A free account unlocks all of them and saves your progress.

Still to come in this lesson:

  1. Test like a picky user
  2. Turn the exact error into a bug report
  3. Save points with Git
  4. Recap