4

I am writing backend for an application in Node.js with Typescript. I am using WebStorm IDE version 11.0.4.

Is there any way to debug code where I can directly add breakpoints in TypeScript not in transpiled JavaScript ?

3
  • This should just work if you have sourcemaps properly generated; if it doesn't work, please create a support ticket Commented Sep 30, 2016 at 17:10
  • @lena Setup instructions would be helpful Commented Mar 21, 2017 at 16:59
  • 1
    No special instructions - just make sure to generate sourcemaps, create a node.js run configuration for the generated main js file and start debugging Commented Mar 21, 2017 at 20:07

1 Answer 1

2

Make sure that in your tsconfig.json file, inside the compilerOptions there is:

"sourceMap": true
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.