longjohn alternatives and similar modules
Based on the "Debugging / Profiling" category.
Alternatively, view longjohn alternatives based on common mentions on social networks and blogs.
-
node-inspector
Node.js debugger based on Blink Developer Tools -
debug
A tiny JavaScript debugging utility modelled after Node.js core's debugging technique. Works in Node.js and web browsers -
ndb
ndb is an improved debugging experience for Node.js, enabled by Chrome DevTools -
why-is-node-running
Node is running but you don't know why? why-is-node-running is here to help you. -
llnode
An lldb plugin for Node.js and V8, which enables inspection of JavaScript states for insights into Node.js processes and their core dumps. -
swagger-stats
API Observability. Trace API calls and Monitor API performance, health and usage statistics in Node.js Microservices. -
jstrace
Dynamic tracing for javascript, in javascript (similar dtrace, ktap etc) -
NiM
Streamline Your Node.js Debugging Workflow with Chromium (Chrome, Edge, More) DevTools. -
thetool
thetool is a CLI tool to capture different cpu, memory and other profiles for your node app in Chrome DevTools friendly format -
ctrace
Well-formatted and improved trace system calls and signals (when the debugger does not help)
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of longjohn or a related project?
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!
Production Use
Longjohn collects a large amount of data in order to provide useful stack traces. While it is very helpful in development and testing environments, it is not recommended to use longjohn in production. The data collection puts a lot of strain on V8's garbage collector and can greatly slow down heavily-loaded applications.
Installation
Just npm install it!
$ npm install longjohn
Usage
To use longjohn, require it in your code (probably in some initialization code). That's all!
if (process.env.NODE_ENV !== 'production'){
require('longjohn');
}
// ... your code
Options
Limit traced async calls
longjohn.async_trace_limit = 5; // defaults to 10
longjohn.async_trace_limit = -1; // unlimited
Change callback frame text
longjohn.empty_frame = 'ASYNC CALLBACK'; // defaults to '---------------------------------------------'
Use with Source Maps
As of version 0.2.9 longjonn supports source maps. Just compile your code down to javascript with source map support and run like normal.
For coffee-script, this would look like:
$ coffee --map --compile script.coffee