title: Debugging TypeScript code with Visual Studio
body: <p>Is there a way to debug TypeScript source in Visual Studio (instead of debugging the generated javascript)?</p>
  
  <p>From the TypeScript language specifications:</p>
  
  <blockquote>
    <p>TypeScript optionally provides source maps, enabling source-level debugging.</p>
  </blockquote>
  
  <p>I was therefore expecting to be able to place breakpoints in ts code and be able to debug it, but it doesn't work. I didn't find any other mentions of debugging in the specs. Is there anything I should do to make this work? Perhaps the word "optionally" hints that I need to do something for it to work... Any suggestions?</p>