Skip to content

Instantly share code, notes, and snippets.

@tekwiz
Created January 9, 2021 17:08
Show Gist options
  • Save tekwiz/c1875a46ce313f64941607d724ca3228 to your computer and use it in GitHub Desktop.
Save tekwiz/c1875a46ce313f64941607d724ca3228 to your computer and use it in GitHub Desktop.
Node.js `debuglog` sections

Node.js debuglog() sections

Available for NODE_DEBUG in node.js master as of 2021 Jan 9:

  • esm
  • http
  • http2
  • https
  • module
  • net
  • policy
  • repl
  • source_map
  • stream
  • timer
  • tls
  • worker

Generate:

grep -R --color=never -E 'debuglog\(' lib/ \
  | sed -nr 's/^.+debuglog\(.(.+)'"'"'.+$/* `\1`/ p' \
  | sort -u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment