Skip to content

Instantly share code, notes, and snippets.

@mattlong
Forked from cecilemuller/launch.json
Last active April 26, 2023 21:23
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 mattlong/8f7cb43526da676cec266f774252b61f to your computer and use it in GitHub Desktop.
Save mattlong/8f7cb43526da676cec266f774252b61f to your computer and use it in GitHub Desktop.
Run ts-node in VSCode Debugger
{
"version": "0.2.0",
"configurations": [
{
"name": "ts-node",
"type": "node",
"request": "launch",
"args": ["${relativeFile}"],
"runtimeArgs": ["-r", "ts-node/register/transpile-only"],
"env": { "NODE_OPTIONS": "--max_old_space_size=1024" },
"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