debug exposes a function; simply pass this function the name of your module, and it will return a decorated version of console.error for you to pass debug statements ...
A five-character fix turned a failing Lighthouse Agentic Browsing audit into a clean pass. What that reveals about what the audit actually measures.