Skip to content

Instantly share code, notes, and snippets.

@dpraimeyuu
Forked from cecilemuller/launch.json
Created November 3, 2021 20:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dpraimeyuu/4fe57ddb29f40db4f87e4e8d82baf9ed to your computer and use it in GitHub Desktop.
Save dpraimeyuu/4fe57ddb29f40db4f87e4e8d82baf9ed to your computer and use it in GitHub Desktop.
Run ts-node in VSCode Debugger
{
"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