Skip to content

Instantly share code, notes, and snippets.

@banyudu
Last active March 30, 2017 08:34
Show Gist options
  • Select an option

  • Save banyudu/7758dcfa873f330d4b8907225b3cc64d to your computer and use it in GitHub Desktop.

Select an option

Save banyudu/7758dcfa873f330d4b8907225b3cc64d to your computer and use it in GitHub Desktop.
launch.json for typescript
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch",
"program": "${workspaceRoot}/index.ts",
"sourceMaps": true,
"outFiles": []
},
{
"type": "node",
"request": "attach",
"name": "Attach",
"address": "localhost",
"port": 5858,
"outFiles": []
}
]
}
@banyudu

banyudu commented Mar 30, 2017

Copy link
Copy Markdown
Author

Set program as the .ts file instead of compiled .js file.
Auto remember to set "sourceMaps" to true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment