views:

39

answers:

1

I'm trying to debug a Chromium extension with console.log(), but I noticed that nothing is appearing in my JavaScript console. I assume the console object for the extension is not the same console that the document has access to, so how do I dumb a variable into JSON so I can see the result. I'm looking to get something like console.log() with Firebug.

A: 

The default Javascript console does not work for extensions, in order to see the console for the extension, you have to:

  • Right click on the Browser icon

  • Click Inspect Popup

That window has the Console for your extension.

Evan Carroll