Stack tracing module that shows the script's name and line number of the position called
I was needing a way to display all of the errors in my huge discord script as far as Script Name and line number so I could track it down better, with this package you can easily and quickly find where your errors are at.
- Ability to call the Print Stack function with optional overloading for error logging with or without an additional comment passed.
$ npm i printstack
var Stack = require('printstack');
Stack.PrintStack();
//File: <The File Name>
//Line Number: <Line Number>
//or
Stack.PrintStack("This is a comment that will show up.");
//File: <The File Name>
//Line Number: <Line Number>
//This is a comment that will show up.
- Ran Crump
This project is licensed under the MIT License