Skip to content

Instantly share code, notes, and snippets.

@taynguyen
Created December 20, 2022 13:14
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 taynguyen/7e8a7633b934563fb09245f962acfa8d to your computer and use it in GitHub Desktop.
Save taynguyen/7e8a7633b934563fb09245f962acfa8d to your computer and use it in GitHub Desktop.
VSCode debug typescript with ts-node launch configuration
{
"version": "0.2.0",
"configurations": [
{
"name": "Ts-Node Debug",
"type": "node",
"request": "launch",
"runtimeExecutable": "node",
"runtimeArgs": ["-r", "ts-node/register"],
"args": ["${relativeFile}"], // Debug selected file
"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