1.

Is It Possible To Debug Any Typescript File?

Answer»

Yes, it is possible. To debug it, you NEED .js source map file. If you are new to source map, read more here. So compile the .ts file with the --sourcemap flag to generate a source map file.

TSC -sourcemap file1.ts

This will create file1.js and file1.js.map. And LAST line of file1.js WOULD be reference of source map file.

//# sourceMappingURL=file1.js.map

Yes, it is possible. To debug it, you need .js source map file. If you are new to source map, read more here. So compile the .ts file with the --sourcemap flag to generate a source map file.

tsc -sourcemap file1.ts

This will create file1.js and file1.js.map. And last line of file1.js would be reference of source map file.

//# sourceMappingURL=file1.js.map



Discussion

No Comment Found