News for hackers. Stuff that matters.

Ask HN: How to generate/find mock stack traces?

I'm interested in studying different types of error traces produced in a production environment. Don't have access to any currently. How would the HN community recommend I find a dataset (or something similar) containing stack traces?
( 3 comments | on HN )
Re:Ask HN: How to generate/find mock stack traces? by austin-cheney on Sunday February 26, 2023 @05:23PM (#34950229)
In JavaScript you can arbitrarily generate a stack trace at any point without interruption.

    console.log(new Error().stack);
Re:Ask HN: How to generate/find mock stack traces? by rsanyal on Sunday February 26, 2023 @05:46PM (#34950491)
Got it. I'll look more into this. I understand that I can script errors myself. I wanted to see if there already exists a dataset that could provide me with different kinds of stack traces.

Either way, I'll look into the solution you're suggesting too. Thanks so much

Re:Ask HN: How to generate/find mock stack traces? by rsanyal on Monday February 27, 2023 @01:43PM (#34960275)
Ended up finding this, in case anyone ever stumbles here -> https://github.com/akhvorov/S3M