title: Microsoft Edge background.js won't print to console
body: <p>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:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>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 =&gt; {
      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);</code></pre>
  </div>
  </div>
  </p>
  
  <p>Am I doing something wrong or is this just not possible using Edge's developer tools? </p>