Skip to content

Commit 85bd499

Browse files
committed
Merge pull request #149 from akaustel/master
Added windows usage remarks
2 parents 055a60b + 7d67815 commit 85bd499

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Readme.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,22 @@ setInterval(function(){
4747

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

50+
### OSX and Linux usage
51+
5052
![debug http and worker](http://f.cl.ly/items/18471z1H402O24072r1J/Screenshot.png)
5153

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

56+
### Windows usage
57+
58+
On Windows the environment variable is set using the `set` command.
59+
60+
```cmd
61+
set DEBUG=*,-not_this
62+
```
63+
64+
The run the program to be debugged as ususal.
65+
5466
## Millisecond diff
5567

5668
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.

0 commit comments

Comments
 (0)