-
Notifications
You must be signed in to change notification settings - Fork 10
Description
If I run ts-node I am able to use the Webstorm debugger however with ts-babel-node I'm not.
I'm not sure what the issue is other than it's when registerBabel() is called. I thought it may have been an issue with how source-maps are configured but I've tried commenting the overrideSourceMaps() function but that doesn't help.
In webstorm, I get the following output for ts-babel-node:
/Users/Dan/.nvm/versions/node/v8.2.0/bin/node /Users/Dan/.nvm/versions/node/v8.2.0/lib/node_modules/npm/bin/npm-cli.js run ts-babel-node --scripts-prepend-node-path=auto
> ts-babel-node-debugger-issue@1.0.0 ts-babel-node /Users/Dan/Documents/git_repos/ts-babel-node-debugger-issue
> ts-babel-node $NODE_DEBUG_OPTION index.ts
parent directory of here is: /Users/Dan/Documents/git_repos
Process finished with exit code 0
For ts-node, where the debugger works:
/Users/Dan/.nvm/versions/node/v8.2.0/bin/node /Users/Dan/.nvm/versions/node/v8.2.0/lib/node_modules/npm/bin/npm-cli.js run ts-node --scripts-prepend-node-path=auto
> ts-babel-node-debugger-issue@1.0.0 ts-node /Users/Dan/Documents/git_repos/ts-babel-node-debugger-issue
> ts-node $NODE_DEBUG_OPTION index.ts
Debugger listening on ws://127.0.0.1:54769/aa160606-b3ee-4c63-9972-9fab24593856
For help see https://nodejs.org/en/docs/inspector
Debugger attached.
parent directory of here is: /Users/Dan/Documents/git_repos
Waiting for the debugger to disconnect...
Debugger listening on ws://127.0.0.1:54769/aa160606-b3ee-4c63-9972-9fab24593856
For help see https://nodejs.org/en/docs/inspector
Process finished with exit code 0
I've created a repo with details to reproduce, https://github.com/dan-j/ts-babel-node-debugger-issue. Note I'm using a forked version of ts-babel-node (which has a pull request open at the moment #16) but I've confirmed the debugger doesn't work in version 1.1.0 either (just 1.1.0 doesn't work with typescript@2.4.2 and ts-node@3.2.1)
I've also tried with node v7.10.1, to no avail.