Skip to content

Instantly share code, notes, and snippets.

@marcosleal-prd
Created September 10, 2019 14:24
Show Gist options
  • Save marcosleal-prd/be3a87f7cddd1627c5b3ad1317a095cf to your computer and use it in GitHub Desktop.
Save marcosleal-prd/be3a87f7cddd1627c5b3ad1317a095cf to your computer and use it in GitHub Desktop.
TypeScript Debugging With VSCode
{
// TypeScript installed global and in project
// Folder used after compile, should be dist/ (in this case)
// tsconfig.json with "sourceMap": true
// Entry point is main.ts of root project
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Build Project",
"program": "${workspaceFolder}\\main.ts",
"preLaunchTask": "npm: build",
"sourceMaps": true,
"smartStep": true,
"internalConsoleOptions": "openOnSessionStart",
"outFiles": ["${workspaceFolder}/dist/**/*.js"]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment