Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,22 @@ setInterval(function(){

The __DEBUG__ environment variable is then used to enable these based on space or comma-delimited names. Here are some examples:

### OSX and Linux usage

![debug http and worker](http://f.cl.ly/items/18471z1H402O24072r1J/Screenshot.png)

![debug worker](http://f.cl.ly/items/1X413v1a3M0d3C2c1E0i/Screenshot.png)

### Windows usage

On Windows the environment variable is set using the `set` command.

```cmd
set DEBUG=*,-not_this
```

The run the program to be debugged as ususal.

## Millisecond diff

When actively developing an application it can be useful to see when the time spent between one `debug()` call and the next. Suppose for example you invoke `debug()` before requesting a resource, and after as well, the "+NNNms" will show you how much time was spent between calls.
Expand Down