Last active
August 27, 2024 07:51
-
-
Save cecilemuller/2963155d0f249c1544289b78a1cdd695 to your computer and use it in GitHub Desktop.
Run ts-node in VSCode Debugger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Example", | |
"type": "node", | |
"request": "launch", | |
"runtimeExecutable": "node", | |
"runtimeArgs": ["--nolazy", "-r", "ts-node/register/transpile-only"], | |
"args": ["src/script.ts", "--example", "hello"], | |
"cwd": "${workspaceRoot}", | |
"internalConsoleOptions": "openOnSessionStart", | |
"skipFiles": ["<node_internals>/**", "node_modules/**"] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Unfortunately, this does not work with
"console": "internalTerminal"
, I'm gettingCannot find module ts-node/register/transpile-only
. (ts-node
is installed locally as a dev dependency - I tried everything, deletingnode_modules
, restarting..).With
"console": "externalTerminal"
it seems to work.Any idea why this has to do with the
"console"
setting?