Fix Your Node.js Errors in Minutes
Table of Contents
Features
Know the root cause of every error in your app
Errsole captures all errors raised in all your servers, along with the HTTP requests that caused them, which is all the information you need to reproduce the errors.
Reproduce any error with just a click of a button
Errsole creates a sandbox environment that is an exact replica of your live app. You can reproduce the error in the sandbox and inspect every line of the code without affecting the live app.
Debug the server code without affecting your live app
With a feature-rich debugger directly connected to the sandbox, you can set breakpoints, reproduce the error, inspect variables, identify the problem, edit code and verify the fix without affecting your live app.
Collaborate and take your productivity to the next level
You can invite your entire development team to your app and control their permissions at a granular level. You can assign errors to your developers to speed up error resolution and increase productivity.
Demo
https://github.com/errsole/errsole.js/assets/3775513/d4d06a28-a776-4031-a2c2-c15b76dde1ed
Installation
Errsole is a Node.js module. You can install this module using the npm install command:
npm install errsole
Setup Instructions
To configure the Errsole module in your app, you need a unique token.
Follow the steps below to generate a unique token:
- Click on the button below to go to the Errsole website.
- Sign up or sign in to Errsole.
- Create an entry for your app.
- Copy the code snippet generated for your app.
- Put the code snippet at the top of your app's main file.
Example
/**
* Put the Errsole code snippet at the top of your app's main file
*/
const errsole = require('errsole');
errsole.initialize({
framework: 'express',
token: '[Your Errsole Token]',
editCode: true,
evalExpression: true
});
/**
* Your app code starts here
*/
const express = require('express');
const app = express();
app.get('/', function (req, res) {
res.send('Hello World');
});
app.listen(3000);
Advanced Configuration
Name | Type | Description |
---|---|---|
framework | string | Required. Your Node.js framework name. |
token | string | Required. Create a unique token for your app on the Errsole website. |
enableDebugger | boolean | Optional. If false, the debugger is disabled. |
editCode | boolean | Optional. If true, your developers have the ability to edit code in a sandbox while debugging an error. This feature allows your developers to debug your app's code more effectively, but it also grants them the ability to run arbitrary code on your server. You have two options: You can set it to false here to disable the code editing option for all developers, or you can set it to true here and manage the permissions of each developer on the errsole website. |
evalExpression | boolean | Optional. If true, your developers have the ability to evaluate JavaScript expressions while debugging an error. This feature allows your developers to debug your app's code more effectively, but it also grants them the ability to run arbitrary code on your server. You have two options: You can set it to false here to disable the eval expression option for all developers, or you can set it to true here and manage the permissions of each developer on the errsole website. |
Support
If you run into any issues, please email us at support@errsole.com.
For bug reports, please open an issue on GitHub.