How can I override/extend ReferenceError in Chrome's JavaScript?
问题 To make debugging easier, I'm capturing all of the console logs in Chrome so that users who submit a feedback entry will also submit all of the logs to our server. When someone encounters a problem in production, I can first and foremost get them back to work so that I can then sit down and more thoroughly go through all of the logs to determine the root cause of whatever issue the user encountered in production. The technique I use to capture the logs involves overriding console.log so that