Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#425·debug

`debug.enable()` flushes enabled namespaces

Author: dboCreated Feb 22, 2017Updated Jan 9, 2026
Labelsbughelp-wantedpr-welcome

Calling enable is disruptive to any enabled namespaces, which has changed in the recent minor version, caused by https://github.com/visionmedia/debug/pull/409

bash
$ DEBUG=foo node -e 'var dbg = require("debug"); dbg.enable("bar"); console.log(dbg.enabled("foo"))'
=> false

Source: debug-js/debug

View original on GitHubView discussion on GitHub