Closed
Description
This works:
ts-node --inspect-brk foo.ts # ❤️
but this doesn't
NODE_OPTIONS="--inspect-brk" ts-node foo.ts # 💥
I think it's because ts-node
starts a child process, and because of that, we get an "address already in use" error. See the Node.js help issue attached.
Just try it for yourself and you will see the problem.