I created a simple TypeScript file and I have the related Source Map file generated. Also enable the Source Map in browser (Chrome, Firefox) and set a break point in my typescript file. But for some reason it just don't hit. Please suggest
-
maybe you didn't add the correct folder to the workarea in the browser? it's hard to tell without knowing your project structure a little bit.toskv– toskv2016-02-26 21:40:26 +00:00Commented Feb 26, 2016 at 21:40
-
I just update, please let me know if you need anything else.Ammar Khan– Ammar Khan2016-02-26 21:46:38 +00:00Commented Feb 26, 2016 at 21:46
-
uhm.. a few more questions. Did you start chrome from VS? and if not did you add your typescript code in the Workspace tab of chrome?toskv– toskv2016-02-26 21:54:52 +00:00Commented Feb 26, 2016 at 21:54
-
I did start chrome from V2 by pressing F5Ammar Khan– Ammar Khan2016-02-26 22:11:13 +00:00Commented Feb 26, 2016 at 22:11
Add a comment
|
1 Answer
I don't think you can debug typescript in Chrome or FF this way. As far as I know, you have two options:
- Debug the .ts file in the Chrome or FF developer tools, by enabling source mapping
- Debug the .ts file in Visual Studio 2015, by configuring your debugger to open Internet Explorer.
2 Comments
Ammar Khan
I was able to debug in chrome and FF developer tools. May I know, why I won't debug in VS with chrome or FF. It works for IE only (as you mentioned).
Niek
I don't actually know the intricacies of that problem, you'd have to find out for yourself. Sorry.

