I'm building an extension for Edge but I am having trouble debugging my background.js. I have not been able to get it to print to the console at all. I am able to print to console just fine through content.js. Here are some console.log statements that I have tried:
background.js
console.log("PLEASE PRINT");
browser.browserAction.onClicked.addListener(function(tab) {
console.log("CLICKED BUTTON");
browser.tabs.executeScript(null,{code:"window.print()"});
});
browser.tabs.onActivated.addListener(activeInfo => {
console.log("onActivated listener");
});
browser.tabs.onActivated.addListener(function(activeInfo) {
console.log("onActivated listener");
});
function printALog() {
console.log("i pray");
}
function handleActivated(activeInfo) {
console.log("PLEASE");
}
browser.tabs.onActivated.addListener(handleActivated);
browser.windows.onFocusedChanged.adddListener(handleActivated);
browser.webNavigation.onCompelted.addListener(handleActivated);
Am I doing something wrong or is this just not possible using Edge's developer tools?