Skip to content

Instantly share code, notes, and snippets.

@blakek
Created September 1, 2022 12:47
Show Gist options
  • Save blakek/212d6f23517f8cc69e0adb9fecddc537 to your computer and use it in GitHub Desktop.
Save blakek/212d6f23517f8cc69e0adb9fecddc537 to your computer and use it in GitHub Desktop.
VS Code - debug current TypeScript file using `ts-node`
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Run current file",
"type": "node",
"request": "launch",
"args": ["${relativeFile}"],
"runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
"skipFiles": ["<node_internals>/**"],
"sourceMaps": true,
"cwd": "${workspaceFolder}"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment