node-source-map-support icon indicating copy to clipboard operation
node-source-map-support copied to clipboard

How can I use this to fix a stack trace string manually?

Open trusktr opened this issue 6 years ago • 3 comments

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?

trusktr avatar Jun 09 '19 23:06 trusktr

Same problem here. I just want to fix the stack trace of an error and log it into another file.

buaazhangfan avatar Aug 17 '19 00:08 buaazhangfan

any ideas yet? seems not to be straightforward after having a look at source-map-support.js...

casdevs avatar Jan 15 '20 09:01 casdevs

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.

badeball avatar Jun 03 '21 08:06 badeball