Modules@robinpath/debug

@robinpath/debug

0.1.0Public

Debugging utilities: inspect, timing, counters, logging, memory profiling, value comparison, ASCII tables

@robinpath/debug

Debugging utilities: inspect, timing, counters, logging, memory profiling, value comparison, ASCII tables

Category Functions Auth License

Why use this module?

The debug module lets you:

  • Deep inspect a value
  • Get detailed type
  • Start a timer
  • End timer and get duration
  • Pass value through with timing

All functions are callable directly from RobinPath scripts with a simple, consistent API.

Installation

npm install @robinpath/debug

Quick Start

No credentials needed — start using it right away:

debug.typeOf $data

Available Functions

FunctionDescription
debug.inspectDeep inspect a value
debug.typeOfGet detailed type
debug.timeStartStart a timer
debug.timeEndEnd timer and get duration
debug.timeitPass value through with timing
debug.countIncrement counter
debug.countResetReset counter
debug.countGetGet counter value
debug.logAdd debug log entry
debug.getLogsGet debug logs
debug.clearLogsClear debug logs
debug.assertAssert condition
debug.traceGet stack trace
debug.memoryGet memory usage
debug.sizeofEstimate value memory size
debug.diffCompare two values
debug.freezeDeep freeze object
debug.cloneDeep clone value
debug.tableFormat as ASCII table
debug.dumpPretty-print value

Examples

Get detailed type

debug.typeOf $data

Start a timer

debug.timeStart "fetch"

End timer and get duration

debug.timeEnd "fetch"

Integration with RobinPath

import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/debug";

const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);

const result = await rp.executeScript(`
  debug.typeOf $data
`);

Full API Reference

See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.

Related Modules

License

MIT

Versions (1)

VersionTagPublished
0.1.0latestyesterday
Install
$ robinpath install @robinpath/debug
Version0.1.0
LicenseMIT
Unpacked Size6.4 KB
Versions1
Weekly Downloads0
Total Downloads0
Stars0
Last Publishyesterday
Createdyesterday

Category

utilities