[go: up one dir, main page]

line-trace

1.0.5 • Public • Published

line-trace

Build Status

Trace print with process PID, source filename, function and line numbers.

Install

$ npm install line-trace

Usage

var trace = require('line-trace');

function f(a) {
  trace(a);
}

f(34);
trace([1, 2, "foo"]);
trace("%s %j", "label", {a:1, b:2});

will generate:

[125 test.js:4 f] 34
[125 test.js:8 ?] [1,2,"foo"]
[125 test.js:9 ?] label {"a":1,"b":2}

License

MIT license.

Package Sidebar

Install

npm i line-trace

Weekly Downloads

2

Version

1.0.5

License

MIT

Last publish

Collaborators

  • mvertes