3 ms·
Having read the post, I wonder about debugging of typescript, especially in the browser environment. Source maps work to some degree, but do those scale for a l
by yoava 11y ago
Having read the post, I wonder about debugging of typescript, especially in the browser environment. Source maps work to some degree, but do those scale for a large project? What is the experience of debugging a large application built using TypeScript compared to plain Javascript?
- venomsnake 11y agoWith typescript typing you generally should need less debugging.
- noomorph 11y agoI'm using Babel ES2015 source maps in small-mid projects and usually their accuracy is acceptable though sometimes you'll meet weird lines (which need several 'step-over's before you finally step over them). ... or do you mean whether we get huge performance issues with the Typescript source maps while debugging large scale projects or not?
- gilamran 11y agoTypeScript's generated code looks very much like how you would write it if you did it in ES5. Classes are prototype based, namespaces are variable with IFFEs, modules are commonjs or requirejs, etc. This means that the generated code feels like your own code, variables, parameters and function names are the same so it's actually your code in ES5. Because of all these reasons we never felt the need to use source-maps (TypeScript can generate them). The only source-maps that we did use was for the minified files.