mirror of
https://github.com/debug-js/debug.git
synced 2026-01-25 16:42:28 +00:00
docs
This commit is contained in:
parent
8e0b97bc15
commit
1a758c931e
@ -67,6 +67,12 @@ setInterval(function(){
|
||||
|
||||

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

|
||||
|
||||
## Conventions
|
||||
|
||||
If you're using this in one or more of your libraries, you _should_ use the name of your library so that developers may toggle debugging as desired without guessing names. If you have more than one debuggers you _should_ prefix them with your library name and use ":" to separate features. For example "bodyParser" from Connect would then be "connect:bodyParser".
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user