Skip to content

Commit

Permalink
Merge pull request #149 from akaustel/master
Browse files Browse the repository at this point in the history
Added windows usage remarks
  • Loading branch information
TooTallNate committed Dec 29, 2014
2 parents 055a60b + 7d67815 commit 85bd499
Showing 1 changed file with 12 additions and 0 deletions.
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

0 comments on commit 85bd499

Please sign in to comment.