stacktrace.js icon indicating copy to clipboard operation
stacktrace.js copied to clipboard

Private source maps support

Open mb2140 opened this issue 9 years ago • 6 comments

I'm trying to think through an approach for using private SourceMaps with stacktracejs. Since the error logger runs on the client, it needs to parse the SourceMap for accurate information - correct? Is it even possible to do this privately?

mb2140 avatar Aug 26 '16 18:08 mb2140

I can't see why you couldn't capture the stack trace of the minified version, send it to the developer. Then the developer then opens a page. You can paste the minified stack trace in and it can convert it back into a stack trace, then run the source map over it (which is available to the developer). Not sure how to convert the stack trace to JSON then back again though? Still would be not very automated.

Ideally, I'd like the minified stack trace sent to a server, which then can do the source mapping.

RyanHow avatar Sep 06 '16 14:09 RyanHow

I would love to have this feature too. I want to have obfuscated code and clear log message in the same time. Please let me know if I can help somehow.

kirylkastko avatar Oct 05 '16 14:10 kirylkastko

Any update/progress on this? Being able to use stacktrace-gps with private source maps would be great!

pranaymohan avatar Dec 12 '16 06:12 pranaymohan

I'm trying to think of the best way to solve this. It seems like the only really secure way is to have a node-based tool that loads source maps from the local filesystem. The problem with hosting source maps on the web in a "secret" location (the way Errorception does this) is that the URL is plain text and so is exposed in ways that passwords are not.

It would take me a while to find enough time to develop a separate tool for this unless it's easy or I have community help.

Maybe there's another clever way to handle this, or someone wants to provide a design specification that would help us all get it solved.

eriwen avatar Dec 12 '16 14:12 eriwen

any updates?

maxbaluev avatar Feb 01 '17 13:02 maxbaluev

Hi @eriwen, Any updates on the feature request?

nishantjoshtech avatar Mar 09 '22 13:03 nishantjoshtech