Is there an easy way to step through TypeScript compiler (tsc.js) and observe how it works?
TypeScript is great for writing client-side code as well as Node. js applications and you can debug client-side source code with the built-in Edge and Chrome debugger.
To debug TypeScript, we need to create an index. html and inside that we need to link our findbug. js file, this is because we will use the Chrome DevTools and we will be able to debug our TypeScript file. After that, we need to install live-server or use the live-server extension for VS Code.
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/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With