Skip to content

Commit

Permalink
add support for ts-node debugging in VSCode
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Brie committed Mar 5, 2019
1 parent 000f2b6 commit 94c83d3
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .vscodeSnippets/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
// 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": [
// debug in VSCode with ts-node
{
"name": "Current TS File",
"type": "node",
"request": "launch",
"args": ["${relativeFile}"],
"runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
"sourceMaps": true,
"cwd": "${workspaceRoot}",
"protocol": "inspector",
}
]
}

0 comments on commit 94c83d3

Please sign in to comment.