A project to be able to debug and step through simple TypeScript file in VS Code.
Useful to fiddle around your TypeScript code with the ability to stop at breakpoints and debug and inspect variables.
Make sure you have git and node installed.
- Navigate to your desired folder to save the files
- Execute the following commands in that terminal:
npx degit https://github.com/linusang/debuggable-ts.git
- Say yes if prompted
npm install
- open project folder in VS Code
- create any
.ts
file or go tosrc/main.ts
- add in your code
- put a breakpoint
- go to Debug > Start Debugging
- you should see that the running code stops at the breakpoint you set