hey all. is there some way in JavaScript (when an ...
# random
s
hey all. is there some way in JavaScript (when an error is thrown) to trim off parts of the stack that are outside your code? I sometimes have issues with AWS libraries where the stack is just loaded with stuff I don’t care about because it’s within the AWS SDK.
eh, I guess not.
e.stack
is just a string.. and you get what you get.
t
You can technically split it by line and trim it
s
yeah, but the issue is that the error only has so many stack trace lines when it gets thrown. I thought maybe when it’s logging it, it’s only showing the first 7-10 lines, and I could somehow shave those off to reveal more. but that’s not the case
t
ah I see