how you can capture console messages for WebExtensions

Hello
I saw the documentation of

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions

but I could not find how to capture the console messages of a tab, the only thing I could see is devtools but there is no way to do it.
I hope some help from the community.
tnks

https://extensionworkshop.com/documentation/develop/debugging/ outlines where to find the proper console for all parts of your extension.