Question: If I call `console.log('something');` from the popup page, or any script included off that it works fine.

However as the background page is not directly run off the popup page it is not included in the console.

Is there a way that I can get `console.log()`'s in the background page to show up in the console for the popup page?

is there any way to, from the background page call a function in the popup page?

Answer: 
Curently with Manifest 3 and service worker, you just need to go to `Extensions Page / Details` and just click `Inspect Views / Service Worker`.
To view console while debugging your chrome extension, you should use the `chrome.extension.getBackgroundPage();` API, after that you can use `console.log()` as usual:

```
chrome.extension.getBackgroundPage().console.log('Testing');

```

This is good when you use multiple time, so for that you create custom function:

```
  const console = {
    log: (info) => chrome.extension.getBackgroundPage().console.log(info),
  };
  console.log("foo");

```

you only use `console.log('learnin')` everywhere