1

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

enter image description here

enter image description here

4
  • 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. Commented Feb 26, 2016 at 21:40
  • I just update, please let me know if you need anything else. Commented 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? Commented Feb 26, 2016 at 21:54
  • I did start chrome from V2 by pressing F5 Commented Feb 26, 2016 at 22:11

1 Answer 1

1

I don't think you can debug typescript in Chrome or FF this way. As far as I know, you have two options:

  1. Debug the .ts file in the Chrome or FF developer tools, by enabling source mapping
  2. Debug the .ts file in Visual Studio 2015, by configuring your debugger to open Internet Explorer.
Sign up to request clarification or add additional context in comments.

2 Comments

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).
I don't actually know the intricacies of that problem, you'd have to find out for yourself. Sorry.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.