Errsole
Capture, replay, debug errors in your Node.js server
Installation and Usage
-
Errsole is a Node.js module. You can install this module using the npm install
command:
npm install errsole
-
Click on the button below to get the Errsole code snippet. Put the code snippet at the top of your app's main file.
Example
const errsole = require('errsole')
errsole.initialize({
framework: 'express',
token: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
})
const express = require('express')
const app = express()
app.get('/', function (req, res) {
res.send('Hello World')
})
app.listen(3000)
Advanced Configuration
Name | Type | Default | Description |
---|
framework | string | | Required. Your Node.js framework name. |
token | string | | Required. Click here to generate a unique token. |
enableDebugger | boolean | true | Optional. If false, the debugger is disabled. |
editCode | boolean | false | Optional. If true, you can edit code while debugging an error. Setting true in staging and production environments is not recommended because your developers can run arbitrary code on your production server. |
evalExpression | boolean | false | Optional. If true, you can evaluate JavaScript expressions while debugging an error. Setting true in staging and production environments is not recommended because your developers can run arbitrary code on your production server. |
Example
const errsole = require('errsole')
errsole.initialize({
framework: 'express',
token: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
enableDebugger: true,
editCode: false,
evalExpression: false
})
const express = require('express')
const app = express()
app.get('/', function (req, res) {
res.send('Hello World')
})
app.listen(3000)
Features
View your Node.js errors and their root cause
Errsole captures all errors raised in your Node.js app and the HTTP requests that caused the errors. View all your Node.js errors and the root cause of each error in one place.
View session logs
When an error occurs, Errsole saves the error and the series of HTTP requests the user has made before the error. These are requests made by a single user to whom the error has occurred. With this information, you can see what the user has done before the error and which user activities have caused the error.
Debug your server code in real-time
Errsole creates a clone of your Node.js app in your server and provides a debugger interface to the app clone. You can replay the captured errors in the app clone and debug the server code in real-time. Your users are not impacted while you debug the server code.
Collaborate with your team members
Add developers to your app team. Then the developers can view, replay, and debug errors raised in your Node.js app.
Demo Video
Support
We appreciate your star, it helps!
If you run into any issues, please email us at support@errsole.com.
For bug reports, please open an issue on GitHub.
License
MIT