Adebugger is an automated debugging tool
It helps you to read the output that is logged to your console.
It does so by logging the function that called the log and its parent function.
Installation
Install the package by running: npm i adebugger
Usage
Start using it:
import { Debugger } from "adebugger";
function test() {
const dbgr = new Debugger();
dbgr.debug(test, "message");
}
The output:
{parent_function}:{function_name}:{line_number}::{conditional_statements}: {message}
Each debug in the same function needs to have a different message!
Example:
This won't work!
function test() {
const dbgr = new Debugger();
dbgr.debug(test, "message");
dbgr.debug(test, "message");
}
This won't work too!
function test() {
const dbgr = new Debugger();
dbgr.debug(test);
dbgr.debug(test);
}