How to debug Typescript in VS Code
Posted onEdited onDisqus:
Since this waste me a hour. I decided to publish my experience here to save your time.
add the following config to your projectRoot/.vscode/launch.json
This is the only setup that works for me. The official VSCode documentation and ts-node documentation are all full of errors when running. This setup also enables you to use your own tsconfig.json, just swap that tsconfig.debug.json.