Skip to content
MxtOUT edited this page Jun 7, 2019 · 1 revision

Setting a breakpoint

  1. Open the developer console by pressing F12

  2. Switch to the (Chrome: "Sources", Firefox: "Debugger") tab (click on the expander to the right if you're not seeing this tab)

Chrome:

Chrome sources

Firefox:

Firefox debugger

  1. Press Ctrl + P and search and open the desired file. Make sure that you're visiting a website where the script is active (e.g. if you want to set a breakpoint in store.js you should be on a store site instead of a community site)

Chrome:

Chrome search

Firefox:

Firefox search

  1. Scroll to the desired line and click on it

Chrome:

Chrome scroll

Firefox:

Firefox scroll

  1. Trigger the breakpoint (in most cases this consists just of reloading the page)

Retrieving variables

  1. Open the developer console by pressing F12

  2. Switch to the "Console" tab (click on the expander to the right if you're not seeing this tab)

Chrome:

Chrome console tab

Firefox:

Firefox console tab

  1. Type in the desired variable and hit Enter

Inspecting the background page

Chrome

  1. Open the extensions page via the address bar by visiting chrome://extensions

Chrome address bar

  1. Enable the developer mode

Chrome developer mode

  1. Click on "background page"

Chrome inspect background

Firefox

  1. Visit about:debugging

Firefox debugging

  1. Tick "Enable add-on debugging"

"Enable add-on debugging"

  1. Click on "Debug"

Firefox inspect background