HACKER Q&A
📣 rsanyal

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?


  👤 rsanyal Accepted Answer ✓
Ended up finding this, in case anyone ever stumbles here -> https://github.com/akhvorov/S3M

👤 austin-cheney
In JavaScript you can arbitrarily generate a stack trace at any point without interruption.

    console.log(new Error().stack);