Skip to content

Bug/feature: ts-node should work with NODE_OPTIONS #471

Closed
@ORESoftware

Description

@ORESoftware

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions