1.0.7 • Published 4 years ago
@nexssp/dddebug v1.0.7
@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)

Installation
npm i @nexssp/dddebugUsage
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 stopAbove will display but program will continue:

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.