Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

typescript debug / breakpoint does not work

Since few days, debugger does not work anymore. I've tried several things without success.

  • typescript 0.9.1
  • VS2012
  • IE10
  • the source map, JS files are updated when I save the TS files

In Visual studio at the place of the breakpoint I've got: 'The breakpoint will not currently be hit. No symbols have been loaded for this document'

  • Any help?

  • How IE load the symbols? I assume it's related to the source map ...

Thank in advance

Richard

like image 929
rlasjunies Avatar asked Nov 03 '13 11:11

rlasjunies


Video Answer


2 Answers

I had a similar problem, but with Visual Studio 2013. No breakpoints were hit, even though I was running in debug mode and with source maps generated.

I found out that after I included the compiled .js files in the project, my breakpoints in TypeScript started hitting.

like image 115
Mika Berglund Avatar answered Sep 28 '22 19:09

Mika Berglund


The following is for people who are using Chrome or Firefox for the environment...

Apparently you just simply can't get it to work with VS but not all is lost as the author of this article shows. Hope it helps some more struggles to get debugging :)

like image 33
Dmitry Matveev Avatar answered Sep 28 '22 19:09

Dmitry Matveev