Created
September 10, 2019 14:24
-
-
Save marcosleal-prd/be3a87f7cddd1627c5b3ad1317a095cf to your computer and use it in GitHub Desktop.
TypeScript Debugging With VSCode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// 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