1

I installed 0.81 and set the project execution to "Debug" and my project file has the typescript compiler stuff in and is creating source maps, but no debugging happens.

Breakpoints aren't hit and errors error into the .js file not the .ts file.

What am I doing wrong?

0

3 Answers 3

4

2 things why it didn't work for me :

  1. Be sure that you are referencing the .js file directly and you are not using the Mvc bundle functionality.
  2. Use IE10 so VS can hook into your browser.
Sign up to request clarification or add additional context in comments.

1 Comment

I'm referencing the .js file direction and I'm using IE 10 and it still doesn't debug into the .ts file. (It will debug into the .js file)
2

I'm assuming that you're using Visual Studio, in that case you can only debug TypeScript via a SourceMap supporting browser. A good example of one is Chrome Canary.

If you use chrome you wont be able to debug via VS's environment but you will be able to via the developer tools.

You can now also do this in IE via Visual Studio with the latest TS releases.

Hope this helps!

Comments

0

I found the issue. It's actually related to this item: Web Essentials linking ts files.

Basically without the fix posted on that link, Web Essentials was compiling the js file with all linked files included within the file. By using that updated version, it compiles just the current file. Once this is fixed, then IE 10, Chrome and new Firefox builds will all debug into the TS file as designed which is EXCELLENT.

Thanks for the tips!

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.