There are two ways of running and debugging TypeScript:
Transpile to JavaScript, run in node and use mappings to link back to the TypeScript source files
or
Run TypeScript directly using ts-node
This article describes both ways using Visual Studio Code and WebStorm. All examples presume that your main file is index.ts.