debug angular-cli project

how to debug angular-cli project when i am running into live server by ng serve


mapping for root looks OK; please remove mappings for 'dist'; and don't forget to refresh browser page once application is loaded.

If this doesn't help, please provide a project that shows up the issue


Unfortunately it did not help.

If could please check my project:

It is a default angular-cli project. Please let me know if this is working for you.


If checkmarks are there, then the sourcemaps are likely loaded successfully. Try refreshing browser page once application is loaded - are any of breakpoints hit?




Hi Elena,

I managed to get it to work. I look likes I had to disable and enable the breakpoints after editing the Launch Configuration.


I got it working thanks to this stackoverflow answer:

Basically, you have to map both the project and the src directory.


Please sign in to leave a comment.