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?
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 :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With