-
Notifications
You must be signed in to change notification settings - Fork 90
Debugging
MxtOUT edited this page Jun 7, 2019
·
1 revision
-
Open the developer console by pressing F12
-
Switch to the (Chrome: "Sources", Firefox: "Debugger") tab (click on the expander to the right if you're not seeing this tab)
Chrome:
Firefox:
- 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:
Firefox:
- Scroll to the desired line and click on it
Chrome:
Firefox:
- Trigger the breakpoint (in most cases this consists just of reloading the page)
-
Open the developer console by pressing F12
-
Switch to the "Console" tab (click on the expander to the right if you're not seeing this tab)
Chrome:
Firefox:
- Type in the desired variable and hit Enter
- Open the extensions page via the address bar by visiting
chrome://extensions
- Enable the developer mode
- Click on "background page"
- Visit
about:debugging
- Tick "Enable add-on debugging"
- Click on "Debug"