Last active
July 12, 2023 18:24
-
-
Save christophemarois/cc35c4b4f753bf72f16e299c1eba3616 to your computer and use it in GitHub Desktop.
Boot up a node inspector anywhere
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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