简体   繁体   中英

How can i debugg my angular2 project

I search for my ts files in console but it did not appeared.

I have been trying a lot for debugging my angular 2 project but no. Now I cannot go forward without debugging, can someone help me?

In tsconfig.json file you should have "sourceMap": true

When you put debugger command to your ts file browser stops to that point. This works at least in Chrome when you have developer tool visible (F12).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM