adebugger

0.2.6 • Public • Published

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);
}

/adebugger/

    Package Sidebar

    Install

    npm i adebugger

    Weekly Downloads

    2

    Version

    0.2.6

    License

    ISC

    Unpacked Size

    7.59 kB

    Total Files

    9

    Last publish

    Collaborators

    • szego