[英]How can i debugg my angular2 project
I search for my ts files in console but it did not appeared. 我在控制台中搜索了我的ts文件,但没有出现。
I have been trying a lot for debugging my angular 2 project but no. 我一直在尝试调试我的angular 2项目,但是没有。 Now I cannot go forward without debugging, can someone help me? 现在,我无法不进行调试而前进,有人可以帮助我吗?
In tsconfig.json file you should have "sourceMap": true 在tsconfig.json文件中,您应该具有“ sourceMap”:true
When you put debugger command to your ts file browser stops to that point. 当您将debugger命令放入ts文件时,浏览器即会停止。 This works at least in Chrome when you have developer tool visible (F12). 至少在可见开发人员工具(F12)的情况下,此方法至少在Chrome中有效。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.