Skip to content

Latest commit

 

History

History
34 lines (19 loc) · 1.36 KB

How to debug TypeScript in VS Code V2.md

File metadata and controls

34 lines (19 loc) · 1.36 KB

This doc shows how to debug TypeScript in Visual Studio Code

Step 1: Download and Install NodeJS
Step 2: Create your TS file to debug:
image
Step 3 : Install Typescript debug extension:
image
Step 4: Add config file:
image
image
Finally the config file is like:
image

Step 5: Install
npm i ts-node typescript

Please notice here please don't add -g
image

Step 6: Click Run->Start debugging, see the breakpoint is hit:
image