How to capture console logs and network requests from a user's browser
DevTools is open on the wrong machine. Here's how to instrument console, errors, fetch, and XHR so a user's browser can tell you what actually happened — and the traps that make naive implementations break the page they're monitoring.