2

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

MiMo
  • 11,793
  • 1
  • 33
  • 48
MR.ABC
  • 4,712
  • 13
  • 44
  • 88

1 Answers1

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.

Community
  • 1
  • 1
Fenton
  • 241,084
  • 71
  • 387
  • 401
  • 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. – MR.ABC Feb 25 '13 at 14:12