Modules@robinpath/debug
@robinpath/debug
0.1.0PublicDebugging 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
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
| Function | Description |
|---|---|
debug.inspect | Deep inspect a value |
debug.typeOf | Get detailed type |
debug.timeStart | Start a timer |
debug.timeEnd | End timer and get duration |
debug.timeit | Pass value through with timing |
debug.count | Increment counter |
debug.countReset | Reset counter |
debug.countGet | Get counter value |
debug.log | Add debug log entry |
debug.getLogs | Get debug logs |
debug.clearLogs | Clear debug logs |
debug.assert | Assert condition |
debug.trace | Get stack trace |
debug.memory | Get memory usage |
debug.sizeof | Estimate value memory size |
debug.diff | Compare two values |
debug.freeze | Deep freeze object |
debug.clone | Deep clone value |
debug.table | Format as ASCII table |
debug.dump | Pretty-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
@robinpath/json— JSON module for complementary functionality
License
MIT
Versions (1)
| Version | Tag | Published |
|---|---|---|
| 0.1.0 | latest | yesterday |
Related Modules
utilities
1
@dev-tester/hello-world
v2.0.0dev-tester
Updated description
0 downloads
...
utilities
0
@robinpath/apollo
v0.1.1robinpath
Apollo module for RobinPath.
0 downloads
...
utilities
0
@robinpath/archive
v0.1.1robinpath
Create and extract .zip and .tar.gz file archives
0 downloads
...
utilities
0
@robinpath/assert
v0.1.1robinpath
Testing assertions: equal, deepEqual, truthy, falsy, type checks, includes, matches, throws, and more
0 downloads
...
Install
$ robinpath install @robinpath/debug Version0.1.0
LicenseMIT
Unpacked Size6.4 KB
Versions1
Weekly Downloads0
Total Downloads0
Stars0
Last Publishyesterday
Createdyesterday

