2

Is it possible to compile all my typescript into an single file (app.js etc.) and debug inside the .ts files ?

1 Answer 1

2

You have a few options here.

  1. Use Source Maps to debug your TypeScript - only supported in a couple of browsers.

  2. Get cosy with the JavaScript - the more you debug in pure JavaScript using browser consoles, the better your understanding will be.

  3. Bundle for debug and test / live separately. If you debug over multiple files you can do it in Visual Studio. You can then use the single file on other environments.

Sign up to request clarification or add additional context in comments.

1 Comment

i use sourcemaps. i like to compile all typescript in a single .js file and then debug my typescript files. it doesnt work since the compiler create only the sourcemap for the single .js file.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.