Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging TypeScript in Firebug

Is there any instruction how to debug typescript in Firebug and/or built-in Firefox js-debugger? Something like but for Firebug and/or Firefox

like image 540
Dis Shishkov Avatar asked Oct 11 '12 09:10

Dis Shishkov


3 Answers

Firefox Developer Edition allows debugging of TypeScript code. The only thing missing is syntax highlighting.

like image 70
Tom Lint Avatar answered Sep 28 '22 07:09

Tom Lint


Chrome canary supports this: http://www.aaron-powell.com/web/typescript-source-maps

like image 43
Jeremy Danyow Avatar answered Sep 28 '22 05:09

Jeremy Danyow


Firebug is closely integrated with the Javascript execution engine of Firefox. As long as Firefox or Firebug have no support for Typescript I guess you are out of luck.

For Coffeescript, there is AceBug which offers debugging support for Coffeescript. It should be possible to extend this to TypeScript. However, the structure of the source Typescript and the compiled Javascript can be quite different so the compiler would need to insert debug symbols to link Javascript to Typescript.

like image 23
Valentin Avatar answered Sep 28 '22 05:09

Valentin