24

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.

Casady
  • 1,426
  • 3
  • 19
  • 39

1 Answers1

45

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 with a nice gif, I will link it if I can find it.

BeardFist
  • 8,031
  • 3
  • 35
  • 40
  • 7
    GIF link: https://i.stack.imgur.com/sw8d5.gif Reference: https://stackoverflow.com/questions/38913799/google-chrome-firefox-do-not-see-extension-output-in-console?noredirect=1&lq=1 – Sumit Murari May 09 '17 at 04:17