34 Commits

Author SHA1 Message Date
Josh Junon
382864a45a
remove archaic badges from readme 2024-08-07 18:49:53 +02:00
gitname
c0805cc4d3
add section about configuring JS console to show debug messages (#866)
* Add section about configuring JS console to show debug messages

* Rewrite log level section to be more concise
2022-02-03 01:34:39 +01:00
Josh Junon
4079aae5b5 update license and more maintainership information 2021-11-27 14:01:16 +01:00
Josh Junon
19b36c052a update repository location + maintainership information 2021-11-27 14:00:16 +01:00
Kristof Kalocsai
f851b00eb0
adds README section regarding usage in child procs (#850)
* adds README section regarding usage in child procs

code example and original request copied from @aaarichter
should close #811

* Update README.md

Co-authored-by: Qix <Qix-@users.noreply.github.com>

Co-authored-by: Qix <Qix-@users.noreply.github.com>
2021-10-13 21:14:14 +02:00
Michael Bøcker-Larsen
7ef8b417a8 feat: Return namespaces string when invoking disable()
feat: Add unit tests for disable return value

fix: Correct spelling in test case description

feat: Test that disable-string works with enable again

Closes #523

docs: Add section about disable return value
2018-10-08 04:06:53 -06:00
Ruslan Boliev
e43e5fed17 add instance extends feature (#524)
* instance extends feature

* add .extend documentation

* allow empty delimiter in extend
2018-09-10 21:06:24 -06:00
KyleStay
1ad1e4a79f Improve usability of Windows notes w/ examples for prompts & npm script (#577)
* Improve usability of Windows notes w/ examples for prompts & npm script

* Made changes requested for pull request

https://github.com/visionmedia/debug/pull/577#pullrequestreview-130549763
2018-06-20 16:49:49 -06:00
Arnaud Benhamdine
ab5083f68a Document enable() (#517)
Document enable, and help to avoid pitfall of https://github.com/visionmedia/debug/issues/425
2017-11-08 14:24:04 -08:00
Nathan Rajlich
2c0df9baf7 rename DEBUG_HIDE_TTY_DATE to DEBUG_HIDE_DATE
The date is actually only printed when output is *NOT* a TTY.

Let's just genericize the name instead.
2017-09-26 21:11:45 +02:00
Nathan Rajlich
56a3853b95 Add DEBUG_HIDE_TTY_DATE env var (#486)
Squashed commit of the following:

commit 62589c0a4e1babc5953ea30c7ef80b3867ed0a04
Author: Adrian Mejia <admejiar@cisco.com>
Date:   Sat Aug 12 15:24:45 2017 -0400

    solves merge conflict

commit 55e5c5e86812163293779e9bbad1afc252c83230
Author: Adrian Mejia <admejiar@cisco.com>
Date:   Sat Aug 12 15:21:16 2017 -0400

    docs

commit e09dec33c15fae136039c7ebd94c23000a35373f
Author: Adrian Mejia <admejiar@cisco.com>
Date:   Sat Aug 12 15:19:10 2017 -0400

    cleanup

commit 9dd6a2b9ca3b1f0d9852ecf0e64ccc6dacf04fa7
Author: Adrian Mejia <admejiar@cisco.com>
Date:   Sat Aug 12 15:05:53 2017 -0400

    enables DEBUG_HIDE_TTY_DATE
2017-09-22 15:45:06 +02:00
Nathan Rajlich
13e1d068e9 remove v3 discussion note for now 2017-08-08 15:23:50 -07:00
Nathan Rajlich
87e7399fd7 readme++ 2017-08-08 14:42:25 -07:00
Nathan Rajlich
8b5c438a22 add Namespace Colors section to readme 2017-08-08 14:42:25 -07:00
Nathan Rajlich
25eb545324 more readme screenshots replaced 2017-08-08 14:42:25 -07:00
Nathan Rajlich
dfbac9c30f readme refactor 2017-08-08 14:42:25 -07:00
antoine.leveugle
39eb2770a2 Use Date#toISOString() instead to Date#toUTCString() when output is not a TTY
Easier to parse programatically and contains milliseconds.

Closes #418.
2017-08-08 14:42:25 -07:00
George Joseph
9d7c997992 Make millisecond timer namespace specific and allow 'always enabled' output (#408)
* Make millisecond timer namespace specific

When debugging node apps, I find it much more useful for the
millisecond timer to be relative to last message from the same
namespace instead of any message. This is especially true when I'm
debugging across multiple libraries or multiple levels in the same
module and I'm interested in seeing all the messages but also need to
compare times from specific levels.

* Enable 'always enabled' output

Having to deal with 2 different logging mechanisms, one for debugging
and one for normal output, can be a nuisance.  It would be much easier to
always use the same facility and semantics for both.  This patch allows
an 'always enabled' namespace to be specified by appending a single '*'
to the namespace name.

var alwaysOn = require('debug')('normal:messages*');
alwaysOn('This will always display regardless of DEBUG');
2017-08-08 14:42:25 -07:00
Mattias Kindborg @FantasticFiasco
659ac0252c docs(readme): fix typo (#473) 2017-08-04 11:51:36 -07:00
Tim Ruffles
a45d4a0239 document .enabled flag (#465)
Was added in #15, should be documented (e.g #423)
2017-06-15 14:39:48 -07:00
Mohammad Asad Siddiqui
b68dbf8cd4 Fix typo (#455)
Enables/disabled -> Enables/disabled
2017-05-12 16:54:14 -07:00
Pia Mancini
065cbfb1bf Add backers and sponsors from Open Collective (#422)
Now your open collective backers and sponsors can to appear directly on your README. 
see how it'll look [here](https://github.com/apex/apex#backers)
[More info](https://github.com/opencollective/opencollective/wiki/Github-banner)
Also add badges on top.
2017-02-17 10:38:15 -08:00
Nathan Rajlich
918d686521 Revert "add Slackin invite badge"
This reverts commit f46d67144d78a081c45a0d02cfec9da48b44e105.
2017-02-10 12:29:08 -08:00
Nathan Rajlich
f46d67144d add Slackin invite badge 2017-02-10 12:28:39 -08:00
Andrew E. Rhyne
580a7a18b3 changed slackin url 2017-02-10 11:30:25 -08:00
Andrew E. Rhyne
9f33c9a8a8 added slackin 2017-02-10 11:24:08 -08:00
Nathan Rajlich
62df220d20 Deprecate DEBUG_FD (#405)
* remove DEBUG_FD from readme

* deprecate DEBUG_FD

* remove arrow function

ES6 habbits hit hard :D
2016-12-27 18:25:09 -06:00
Andrew Scheller
146d0d1c0a Fix README typo 2016-12-21 06:17:41 +00:00
Andrew E. Rhyne
ea43614db8 added notice about v3 api discussion 2016-12-20 22:05:21 -08:00
Andrew E. Rhyne
d85c0c613d build perf, fix for bowerfile, fix for webworker 2016-12-20 20:44:57 -08:00
Sean Lavine
932b24a685 rm non-maintainted dist/ dir (#375) 2016-12-17 22:43:35 -08:00
Yami
cea345a1cb docs: Simplified language in the opening paragraph. Closes #340 (#373)
* docs: Simplified language in the opening paragraph. Closes #340

* fix: Adjust wording as per @thebigredgeek
2016-12-16 11:16:15 -08:00
Andrew E. Rhyne
a5bbe13b75 travis ci integration 2016-12-14 11:27:21 -08:00
Nathan Rajlich
e58d54b46f Node: configurable util.inspect() options (#327)
* `formatArgs()` gets passed the args Array directly

Rather than working on `arguments`. The Node.js version
was for some reason turning the arguments into an Array
again so it was happening twice! This should make things
faster overall.

* whitespace

* rename `Readme.md` to `README.md`

* refactor the `debug()` constructor a bit

Now, debug instances are hot-enabelable. That is, you can
toggle the `debug.enabled` boolean on instances to enable
or disable an instance. There is still no global version of
this functionality.

Now all instances get a `useColors` and `colors` property,
even disabled ones, in case they get enabled later on. Boot-up
time impact should be negligible.

* node: allow configurable `util.inspect()` options

Via env variables by default. So to get more object depth,
you pass the `DEBUG_DEPTH=10` env var.

For the `showHidden` option, you set `DEBUG_SHOW_HIDDEN=on`.

See the Node.js docs for the complete list of `util.inspect()` options:
https://nodejs.org/api/util.html#util_util_inspect_object_options

* README: document inspect env variables
2016-12-12 15:13:35 -08:00