Have you tried `about:debugging`? Pretty sure both chrome and firefox support a remote debugging protocol. I only know about it because there is a way to hook up VSCode so all the debugging stats end up in the editor instead of the browser.
[1] https://developer.mozilla.org/en-US/docs/Tools/about:debuggi... [2] https://marketplace.visualstudio.com/items?itemName=firefox-...