Skip to content
D

Debug

A tiny JavaScript debugging utility modelled after Node.js core's debugging

by debug-jsFree

#357in Utilities
0In stores

Description

debug is a tiny JavaScript debugging utility modelled after the debugging technique in Node.js core. It works in Node.js and in web browsers…

Highlights

  • Namespace-based debug output
  • DEBUG environment variable switches
  • Works in Node.js and browsers
  • Colours per namespace
  • Millisecond time differences
  • Tiny and modelled on Node core debugging

Ratings & Reviews

No ratings yet

Be the first to rate Debug.

People also visit

B

Buffer

The buffer module from node.js, for the browser

Utilities
Launch
D

debug

Debug package usage guide

AI Skills
Get
C

Chrome Remote Interface

Chrome Debugging Protocol interface for Node.js

Utilities
Launch
B

Bowser

a browser detector

Utilities
Launch
J

Jsconsole

Web based console - for presentations and workshops

Utilities
Launch
B

BenchJS

Run, compare, and share JavaScript benchmarks in your browser with BenchJS

Utilities
Launch

Debug FAQ

What is debug?

A tiny JavaScript debugging utility modelled after Node.js core's debugging technique, for Node.js and browsers.

How do I turn output on?

Set the DEBUG environment variable to a space or comma separated list of namespaces. The README has notes for Windows Command Prompt and PowerShell.

Why do the lines have colours?

Each namespace is given a colour, so you can tell which debug instance a line came from.

Can it show timing?

Yes. It can show the milliseconds between debug calls.

Which environments does it support?

Node.js and web browsers, according to the README.

Where is it used?

Inside many JavaScript libraries, since it is small and has no dependencies.

What are the best Debug alternatives?

Popular alternatives to Debug include Buffer, Chrome Remote Interface and Bowser. See all Debug alternatives

Developer Stuff

Badges