Skip to content

Commit

Permalink
Update vscode debug config (#1466)
Browse files Browse the repository at this point in the history
  • Loading branch information
cspotcode committed Sep 19, 2021
1 parent 9cf6ae3 commit f421f60
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions website/docs/recipes/visual-studio-code.md
Expand Up @@ -2,20 +2,22 @@
title: Visual Studio Code
---

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`).
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`).

```json
```json title=".vscode/launch.json"
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"runtimeArgs": [
"-r",
"ts-node/register"
],
"args": [
"${workspaceFolder}/index.ts"
]
"configurations": [{
"type": "node",
"request": "launch",
"name": "Launch Program",
"runtimeArgs": [
"-r",
"ts-node/register"
],
"args": [
"${workspaceFolder}/src/index.ts"
]
}],
}
```

Expand Down

0 comments on commit f421f60

Please sign in to comment.