marker-io / browser-sdk

Marker.io browser SDK
MIT License
8 stars 8 forks source link

Devtools Console only shows `shim.js` #20

Closed ariperez closed 1 year ago

ariperez commented 1 year ago

I'm currently using redwood.js with marker.io. If marker-io loads in any form, all messages in the Devtools console show up with their source as /shim.js. Any ideas how I can stop this behavior?

image
olivierkaisin commented 1 year ago

Hi @ariperez,

The file name modification is a side-effect of our console logs recorder being activated, but unfortunately, there is currently no way for us to avoid it as it is a consequence of a browser limitation.

You could disable the recorder on your widget, but you would loose the entire console.logs feature, so I wouldn't recommend it.

A better solution I would personally recommend is to disable Marker.io in your local development environment, but to keep it enabled in staging and production. That way your logs are left untouched while working on new features, but you will keep getting detailed console logs when customers report bugs using Marker.io.

Let me know if that helps, Olivier

MatthewAry commented 5 months ago

You could at least tell us how to disable the recorder. :)