Socket
Socket
Sign inDemoInstall

@nexssp/dddebug

Package Overview
Dependencies
3
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @nexssp/dddebug

Easy Debugging with useful information


Version published
Maintainers
1
Created

Readme

Source

@nexssp/dddebug

  • EASY Debugging with USEFUL information

Just simply debug function. no console.log/process.exit -> just ddd with nice debug output and time executed.

  • It shows where stopped with: debugged value (object, array, ...), mulitple values,
  • line number
  • filename
  • filepath
  • exec time
  • current working dir (cwd)

image

Installation

npm i @nexssp/dddebug

Usage

Global

require('@nexssp/dddebug/global') // and from now you can use it everywere..

ddc('debug A')
ddd('stop here', { myvar: debug })

Standard

const { ddd, ddc } = require('@nexssp/dddebug')

ddc({ x: 1 }, ['another', 'var'], 'something else') // will not stop here. ddd will stop

Above will display but program will continue:

dddebug function - continue example display

ddd(varToDebug, anothervar, myobject, myArray);

// OR

const d = require("@nexssp/dddebug").ddd;

const myObject = {'test', {"x":["y"]}};

d(myObject);

Note

Time is calculated from require("@nexssp/dddebug"); so put this at the top of the program. after ddd program will stop, and ddc will continue.

Keywords

FAQs

Last updated on 28 May 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc