Suggestion: Generate //@line mappings in output

Topics: Language Specification
Oct 1, 2012 at 6:11 PM

I realize that this is currently only support in Mozilla based browsers, but line-number mappings would make debugging .TS code much easier.

Oct 1, 2012 at 10:15 PM

Source maps are supported in Chrome as well.  I do see that there is some code in the TypeScript repository for generating source maps already.  So I'm guessing that source maps are on their way shortly.  Hopefully this means that IE will add support for source maps as well. :-)

Oct 2, 2012 at 2:43 PM

If I can debug TypeScript inside Visual Studio, I will immediately drop CoffeeScript and move entirely to TypeScript. This would be a huge feature. We need better debugging tools, and right now, JS and CoffeeScript just aren't there. Debugging generated JavaScript in the browser is only slightly better than debugging assembly generated from C++.

Microsoft has a real chance here to gain web development share, and if they play their cards right, it might just work.

Oct 5, 2012 at 6:30 PM

We're looking into improving the Visual Studio experience even further, stay tuned.