$ ts-node --inspect==5858 src/index.ts
Server started at http://localhost:8080
Works fine with v4.1.0
Duplicate of https://github.com/TypeStrong/ts-node/issues/537. Please search before opening another issue, especially since the issue directly before this is the exact same.
ts-node --files ./src/index.ts --inspect
you need to use something like this: node inspect=9999 -r ts-node src/index.ts
Most helpful comment
you need to use something like this:
node inspect=9999 -r ts-node src/index.ts