Oleg Mihailik
Oleg Mihailik

Reputation: 2590

How to debug TypeScript compiler?

Is there an easy way to step through TypeScript compiler (tsc.js) and observe how it works?

Upvotes: 6

Views: 3999

Answers (1)

Oleg Mihailik
Oleg Mihailik

Reputation: 2590

One way is to use Windows Script Host with //x key. You need Visual Studio installed, and you can't use source maps to debug over the original source.

Another way is to debug it in Node.js using tools like Nodeclipse or similar.

The easiest way is to debug it using Developer Tools embedded in any modern browser. There is a web page emulating platform IO and allowing to run TSC over it: http://mihailik.github.com/tsc.browser/

Upvotes: 4

Related Questions