Debugging TypeScript code with Visual Studio

前端 未结 6 1471
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-30 20:13

Is there a way to debug TypeScript source in Visual Studio (instead of debugging the generated javascript)?

From the TypeScript language specifications:

6条回答
  •  北荒
    北荒 (楼主)
    2020-11-30 20:54

    This is now fixed in VS 2017 so you can debug directly in Visual Studio and typescript.

    Just set your breakpoint in your *.ts file, and it will be hit.

    And it will debug in VS, not IE, as if you were debugging c#.

提交回复
热议问题