简体   繁体   English

我如何调试我的angular2项目

[英]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.

相关问题 如何在 VSCode 内的终端中调试 c 代码? - How can I debugg c code in the terminal inside VSCode? 如何在python中使用mysql数据库调试cgi脚本。 我是如何调试的新手 - How do i debug my cgi script with mysql database in python. I am new to how to debugg 如何调试迭代程序? - How to debugg iterative procedures? 为什么我的代码在调试时运行,但当我按下 build & run 时它崩溃了? - Why does my code run when i debugg but when i press build & run it crashes? 如何在PhpStorm / WebStorm中调试angular2种子项目? - How to debug angular2 seed project in PhpStorm/WebStorm? 如何像在 winpdb 中一样配置 VScode 来调试多线程应用程序? - How to configure VScode to debugg multithreaded application as in winpdb? 尝试在android studio中进行调试时出现“会话'app':错误” - I get “Session 'app': Error” when trying to debugg in android studio ASP.NET解决方案存储在远程Web服务器中。 如何调试? - ASP.NET solution stored in a remote webserver. How to debugg? 如何在Angular2中禁用生产模式? - How to disable production mode in Angular2? 如何调试在单元测试项目中导入的.jar库源代码? - How can I debug a .jar library source code imported in my unit testing project?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM