node-source-map-support
node-source-map-support copied to clipboard
How can I use this to fix a stack trace string manually?
I've got some code, with a stack trace, along with the original file and source map. What can I import and call in order to manually process the stack trace?
In other words, I have
const trace = "..."
now what do I call to manually convert it to a friendly trace based on the source map?
Same problem here. I just want to fix the stack trace of an error and log it into another file.
any ideas yet? seems not to be straightforward after having a look at source-map-support.js...
I'm looking for the same. I have a single Error object for which I want to obtain a transformed stack trace. I can't install() because I'm working in a shared environment.