How to use console.log() to debug a Chrome extension?
I'm trying to debug my Chrome extension using console.log("message"); My extension works fine (for the most part), I'm clicking buttons that call function which perform something. Every function as a consloe.log() debug line. If I open the chrome console (ctrl + shift + i) after chrome loads, it remains empty, no matter what I do. Chrome is set to developer mode. Make sure that you are opening the correct dev console. You need to go to the generated background page for the background page console and right click -> inspect popup for the popup console. There was an answer to a similar question