Today, we’re happy to announce the second publically available preview of TypeScript: version 0.8.1. This preview focuses on addressing critical bugs and adding one of the most requested features: source level debugging.
To enable debugging in Visual Studio select ‘Debug’ from the dropdown after creating an HTML Application with TypeScript project.
Once selected, you can set breakpoints and step directly in your TypeScript code.
You can also see your current location using the call stack.
This release addresses many issues found in our first public preview. These fixes have improved compiler stability, compiler correctness, and UTF-8 support. A big “thank you!” to everyone who has helped so far by reporting bugs and participating in the issue tracker and forums.
There are two known breaking changes since v0.8.0:
Source maps support in VS? That's AWESOME!
Does it work with any of the other source map generators (like Uglify2)?
The compiler will output the .map file. For other tools in your toolchain, as long as they can read the source map file, they should work.
I was actually wondering about the VS tooling. If say I have a file that is just .js, I run a minifier that outputs a source map file (UglifyJS2 being one of them) will I be able to have the same debugging experience? Or is the source map debugging tied to TypeScript
Looking good. Still no ExtJS support.
Good stuff! when are generics coming?!
Thanks! Source level debugging in VS was my #1 request for the new release!
However can't get it to work - I'v added --sourcemap output and changed to the "Debug" configuration and now VS crashes every time I hit the "start debugging" button.
I haven't been used Visual Studio since 2008. Typescript intellisense changes the game. Source maps is icing on the cake. I even kicked coffeescript out of the door!
Node.js debugging? That would be heaven.
ExtJS is basically a commercial product, why should MS support it? I still haven't forgotten ExtJS open source license switcharoo.
I also find that trying to debug with v0.8.1 causes VS to crash immediately on both updated 0.8.0 projects and new TypeScript projects.
I also see Visual Studio crash when I try to debug. Looking forward to using this functionality when it works! ;)
@Andrew @Dave @Bjorn (and anyone seeing the crash) - What version of VS are you using? Also, did you happen to uninstall the previous version of the VS plugin before installing the new one?
@Aaron Powell - the source map support may work for minified code as well, though we specifically are targeting debugging TypeScript in this release
I was on the fence about TS, having used CoffeeScript for some time and recognized a need for better web development tools. But source level debugging in Visual Studio, complete with refactoring support? Ok, I'm sold. Now I'm feelin' the love. I'll be switching my code over this weekend.
@jntrnr I'm using VS 2012 Premium. I didn't at first, but then I removed both versions and re-installed and am still seeing this behavior.