How do I debug typescript code in VS 2017?

前端 未结 5 1401
温柔的废话
温柔的废话 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:25

    I found two conditions that will not break in Visual Studio 2017(ver15.9.5).

    1) .UseContentRoot
    In the WebHost.CreateDefaultBuilder method in Program.cs, if you change the content route using UseContentRoot(), VS will not Break.

    2) wwwroot Folder
    You can change webroot by UseWebRoot(), This works correctly.
    But if you delete "wwwroot" folder in the project root, VS will not Break.

提交回复
热议问题