How do I debug typescript code in VS 2017?

前端 未结 5 1395
温柔的废话
温柔的废话 2020-12-06 17:12

I have a ASP.NET Core project which uses TypeScript.

Is it possible to debug TypeScript code in Visual Studio?

5条回答
  •  春和景丽
    2020-12-06 17:28

    I was attempting to convert the dotnetcore ReactRedux template to Typescript and could not get breakpoints to hit my typescript files.

    I was able to determine that in your tsconfig.json file you need to have the options inlineSourceMap:true and inlineSources:true set.

提交回复
热议问题