Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome devtools extension console

I included this in my chrome extension manifest

"devtools_page": "devtools.html"

And in devtools.html I include a devtools.js file which creates a panel

chrome.devtools.panels.create("Panel", "icon.png", "panel.html", function(panel){});

The panel is indeed created. And in panel.html I include a panel.js file in which I added a listener

chrome.devtools.network.onRequestFinished.addListener(function(details){
    console.log(details);
});

But where can I see the console output of the panel? Or how can I redirect it to the devtools console?

like image 837
user1340531 Avatar asked May 28 '13 21:05

user1340531


1 Answers

Another way to do it is to open the chrome devtools in a separate window (not on the side of the browser) and then press CMD + Option + i (for Mac) and then you get another devtools for that devtools. There you can debug and see console logs easier :)

like image 87
Ciprian Mocanu Avatar answered Oct 24 '22 14:10

Ciprian Mocanu