Skip to content Skip to sidebar Skip to footer

How To Get Typescript Files To Hit Breakpoints In The Original File, Not In Dynamic Tab?

Before upgrading to Visual Studio Premium 2013 Update 2 RC, when I add a breakpoint in a Typescript file, the breakpoint will hit in the original Typescript file. However, after t

Solution 1:

Do you see a .map file along w/ a .js file? When you compile your Typescript you need to use the compiler option of -sourcemap

This will create a .map file that VS2013 uses to know how to map the js file to your typescript file.

so in your folder you should see:

  • file.ts
  • file.js
  • file.js.map

Post a Comment for "How To Get Typescript Files To Hit Breakpoints In The Original File, Not In Dynamic Tab?"