Created
September 1, 2022 12:47
-
-
Save blakek/212d6f23517f8cc69e0adb9fecddc537 to your computer and use it in GitHub Desktop.
VS Code - debug current TypeScript file using `ts-node`
This file contains hidden or 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
{ | |
// 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