Tutorial by Examples

Add the debugger statement in your content script var foo = 1; debugger; foo = 2; Open the Developer Tool on the web page where your content script is injected to see the code execution pause at those lines.
The background script is like any other JavaScript code. You can debug it using same tools you debug other JavaScript code in Chrome. To open the Chrome Developer Tools, go to chrome://extensions, and turn on Developer mode: Now you can debug any extension that have a background page or script. ...
You have 2 ways to debug the popup window. Both ways are by using the Chrome DevTools. Option 1: Right click the extension's action button, and choose Inspect popup Option 2: Open the popup window, directly in your browser as a tab. For example, if you extension id is abcdefghijkmnop, and your ...

Page 1 of 1