Skip to content

Instantly share code, notes, and snippets.

@christophemarois
Last active July 12, 2023 18:24
Show Gist options
  • Save christophemarois/cc35c4b4f753bf72f16e299c1eba3616 to your computer and use it in GitHub Desktop.
Save christophemarois/cc35c4b4f753bf72f16e299c1eba3616 to your computer and use it in GitHub Desktop.
Boot up a node inspector anywhere
// will act --inspect-brk, but only when evaluated
// works inside the main thread, a worker thread
// also works with typescript sources, built-in support in tsx
require('node:inspector').open(undefined, undefined, true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment