Skip to content

Commit f421f60

Browse files
authored
Update vscode debug config (#1466)
1 parent 9cf6ae3 commit f421f60

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

website/docs/recipes/visual-studio-code.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,22 @@
22
title: Visual Studio Code
33
---
44

5-
Create a new node.js configuration, add `-r ts-node/register` to node args and move the `program` to the `args` list (so VS Code doesn't look for `outFiles`).
5+
Create a new Node.js debug configuration, add `-r ts-node/register` to node args and move the `program` to the `args` list (so VS Code doesn't look for `outFiles`).
66

7-
```json
7+
```json title=".vscode/launch.json"
88
{
9-
"type": "node",
10-
"request": "launch",
11-
"name": "Launch Program",
12-
"runtimeArgs": [
13-
"-r",
14-
"ts-node/register"
15-
],
16-
"args": [
17-
"${workspaceFolder}/index.ts"
18-
]
9+
"configurations": [{
10+
"type": "node",
11+
"request": "launch",
12+
"name": "Launch Program",
13+
"runtimeArgs": [
14+
"-r",
15+
"ts-node/register"
16+
],
17+
"args": [
18+
"${workspaceFolder}/src/index.ts"
19+
]
20+
}],
1921
}
2022
```
2123

0 commit comments

Comments
 (0)