Package Exports
- longjohn
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (longjohn) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
longjohn
Long stack traces for node.js with configurable call trace length
Inspiration
I wrote this while trying to add long-stack-traces to my server and realizing that there were issues with support of EventEmitter::removeListener. The node HTTP Server will begin to leak callbacks and any of your own code that relies on removing listeners would not work as anticipated.
So what to do... I stole the code and rewrote it. I've added support for removeListener along with the ability to cut off the number of async calls the library will trace. I hope you like it!
Please thank tlrobinson for the initial implementation!
Installation
Just npm install it!
$ npm install longjohnUsage
To use longjohn, require it in your code (probably in some initialization code). That's all!
require('longjohn');
// ... your codeOptions
Limit traced async calls
longjohn.async_trace_limit = 5; // defaults to 10
longjohn.async_trace_limit = -1; // unlimitedChange callback frame text
longjohn.empty_frame = 'ASYNC CALLBACK'; // defaults to '---------------------------------------------'