idea-run-typescript
idea-run-typescript copied to clipboard
[bug] unknown reason debug process start twice
currently this bug only happen for me
https://github.com/bluelovers/idea-run-typescript/pull/14#issuecomment-678684547
https://github.com/bluelovers/idea-run-typescript/pull/14#issuecomment-678695824
https://github.com/bluelovers/idea-run-typescript/pull/14#issuecomment-678802907
bug is by esm-ts-node
How do you reproduce this? How to use esm-ts-node? Re-open this ticket, I'll try to help

Only run once for me, but debug not working
I know what's wrong. Getting debug message twice is correct with esm-ts-node. Only runs once, but debug connects twice.
- Debug connects to main process
esm-ts-nodecreates a child process- Debug connects to child process.
One run, two messages
looks like can't fix this by delete NODE_OPTIONS lol, it will make debug point not work
How about not using esm-ts-node? When you have debug with esm-ts-node selected, you can instead run node -r esm -r ts-node/register directly