Is it possible to compile all my typescript into an single file (app.js etc.) and debug inside the .ts files ?
Asked
Active
Viewed 371 times
1 Answers
2
You have a few options here.
Use Source Maps to debug your TypeScript - only supported in a couple of browsers.
Get cosy with the JavaScript - the more you debug in pure JavaScript using browser consoles, the better your understanding will be.
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.
-
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