BuildDocsReferenceGuidesBlogDiscordnode:utilDebugLoggerenabledBuildDocsReferenceGuidesBlogDiscordnode:utilDebugLoggerenabledutil.DebugLogger.enabledenabledReferenceDocsGuidesDiscordMerch StoreGitHubBlogRuntimePackage managerTest runnerBundlerPackage runnerBun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseWe're hiring →
property enabled | Node.js util module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- The `util.debuglog().enabled` getter is used to create a test that can be used
in conditionals based on the existence of the `NODE_DEBUG` environment variable.
If the `section` name appears within the value of that environment variable,
then the returned value will be `true`. If not, then the returned value will be
`false`.
```js
import { debuglog } from