Skip to content

Instantly share code, notes, and snippets.

@banyudu
Last active March 30, 2017 08:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save banyudu/7758dcfa873f330d4b8907225b3cc64d to your computer and use it in GitHub Desktop.
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
Copy link
Author

banyudu commented Mar 30, 2017

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