Skip to content

Commit 94c83d3

Browse files
author
Paul Brie
committed
add support for ts-node debugging in VSCode
1 parent 000f2b6 commit 94c83d3

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.vscodeSnippets/launch.json

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
// debug in VSCode with ts-node
8+
{
9+
"name": "Current TS File",
10+
"type": "node",
11+
"request": "launch",
12+
"args": ["${relativeFile}"],
13+
"runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
14+
"sourceMaps": true,
15+
"cwd": "${workspaceRoot}",
16+
"protocol": "inspector",
17+
}
18+
]
19+
}

0 commit comments

Comments
 (0)