Hacker News new | ask | show | jobs
Ask HN: How to generate/find mock stack traces?
1 points by rsanyal 1213 days ago
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?
2 comments

Ended up finding this, in case anyone ever stumbles here -> https://github.com/akhvorov/S3M
In JavaScript you can arbitrarily generate a stack trace at any point without interruption.

    console.log(new Error().stack);
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