Suggestion: Generate //@line mappings in output

Topics: Language Specification
Oct 1, 2012 at 7: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. 

https://developer.mozilla.org/en-US/docs/SpiderMonkey/JSAPI_Reference/JS_SetOptions?redirectlocale=en-US&redirectslug=JS_SetOptions

Oct 1, 2012 at 11: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 3: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.

Coordinator
Oct 5, 2012 at 7:30 PM

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