Angular 2 Errors and Typescript - how to debug?

前端 未结 4 464
我寻月下人不归
我寻月下人不归 2021-02-03 18:53

I\'ve just started a project to learn Angular2 and Typescript+Javascript. I come from a Java background and my approach to debugging projects is usually a combination of stack t

4条回答
  •  你的背包
    2021-02-03 19:30

    Open web developer console, go to "Sources" section. Press "cntrl+p". A search box will open where type ".ts" and find your file or directly search your file like "myfile.ts". Open it and you can put breakpoints directly in the code, the same way we put breakpoints in a js file and Voila, you can debug Typescript.

提交回复
热议问题